From 811886c4f1adfbe6520813fba8a212617fce0ddc Mon Sep 17 00:00:00 2001 From: Vishal Chaudhary Date: Wed, 24 Jan 2024 16:03:17 +0530 Subject: [PATCH] Update DASTScan.java --- .../java/com/hcl/appscan/sdk/scanners/dynamic/DASTScan.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/hcl/appscan/sdk/scanners/dynamic/DASTScan.java b/src/main/java/com/hcl/appscan/sdk/scanners/dynamic/DASTScan.java index 47561ac2..c644ea94 100644 --- a/src/main/java/com/hcl/appscan/sdk/scanners/dynamic/DASTScan.java +++ b/src/main/java/com/hcl/appscan/sdk/scanners/dynamic/DASTScan.java @@ -100,7 +100,11 @@ public void run() throws ScannerException, InvalidTargetException, JSONException private JSONObject creatingJSONForProperties(Map params) throws JSONException { JSONObject json = new JSONObject(params); - return json.put(SCAN_CONFIGURATION, createScanConfiguration(json)); + if(!params.containsKey(SCAN_FILE_ID)) { + return json.put(SCAN_CONFIGURATION, createScanConfiguration(json)); + } else { + return json; + } } private JSONObject createScanConfiguration(JSONObject json) throws JSONException {