diff --git a/pom.xml b/pom.xml index 519dcda4..a900c0de 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ com.github.checkmarx-ltd cx-spring-boot-sdk - 0.6.10 + 0.6.12 cx-spring-boot-sdk diff --git a/src/main/java/com/checkmarx/sdk/service/CxService.java b/src/main/java/com/checkmarx/sdk/service/CxService.java index 67e0a40e..a29fb490 100644 --- a/src/main/java/com/checkmarx/sdk/service/CxService.java +++ b/src/main/java/com/checkmarx/sdk/service/CxService.java @@ -1200,6 +1200,9 @@ private void prepareIssuesRemoveDuplicates(List cxIssueList, } else if (existingIssue.getVulnerabilityStatus() != null) { String existingIssueDescription = existingIssue.getDescription(); String newIssueDescription = issue.getDescription(); + String existingSimilarityId = existingIssue.getSimilarityId(); + String newSimilarityId = issue.getSimilarityId(); + existingIssue.setSimilarityId(existingSimilarityId + ", " + newSimilarityId); if (!existingIssueDescription.contains(newIssueDescription)) { stringBuilder.append(existingIssueDescription).append("\r\n").append("\r\n").append(newIssueDescription); cxIssueList.get(cxIssueList.indexOf(issue)).setDescription(stringBuilder.toString());