Preventing replacement of duplicate scan requests
A duplicate scan request occurs if you have more than one scan request that uploads scan results to the same application version in Application Security. By default, the Controller is configured to replace duplicate scan jobs (replace_duplicate_scans property). You can prevent the replacement for specific scan requests with the --disallow-replacement (-dr) option in a scan request.
Consider the following scenario:
Submit a scan for upload to AppA 1.0, scan job 1 is added to the queue.
Submit a scan for upload to AppA 1.0, scan job 1 is canceled and scan job 2 is added.
Submit a scan for upload to AppA 1.0 with the
-droption, scan job 2 is canceled and scan job 3 is added to the queue.Submit a scan for upload to AppA 1.0 with or without the
-droption, scan job 3 remains in the queue and scan job 4 is added to the queue.
The following example scan request performs a remote translation and scan, uploads the results to the application version AppA, 1.0 on Application Security, and overrides a duplicate replacement to ensure the scan job is not removed from the queue by future scan requests uploaded to the same application version:
scancentral -sscurl <ssc_url> -ssctoken <token> start -upload -application AppA -version 1.0 --disallow-replacement
See also