Fixing - ensuring that issues are not created if all references are not exploitable from Checkmarx
@@ -137,6 +137,7 @@ public class IssueService implements ApplicationContextAware {
}
} else {
/*Create the new issue*/
+ if(!xIssue.getValue().isAllFalsePositive()) {
fileUrl = ScanUtils.getFileUrl(request, currentIssue.getFilename());
xIssue.getValue().setGitUrl(fileUrl);
log.info("Creating new issue with key {}", xIssue.getKey());
@@ -146,6 +147,7 @@ public class IssueService implements ApplicationContextAware {
log.info("New issue created. #{}", newIssue.getId());
}
}
+ }
} catch (HttpClientErrorException e) {
log.error("Error occurred while processing issue with key {} {}", xIssue.getKey(), e);
}
