Skip to content

Commit

Permalink
Fix duplicate entries in Vulnerability Audit
Browse files Browse the repository at this point in the history
Fixes duplicate entries of the same finding appearing for
every team membership of the user

Signed-off-by: RBickert <rbt@mm-software.com>
  • Loading branch information
rbt-mm committed Feb 8, 2024
1 parent 1eb0399 commit fa3cc93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/dependencytrack/model/Finding.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public class Finding implements Serializable {
"LEFT JOIN \"ANALYSIS\" ON (\"COMPONENT\".\"ID\" = \"ANALYSIS\".\"COMPONENT_ID\") AND (\"VULNERABILITY\".\"ID\" = \"ANALYSIS\".\"VULNERABILITY_ID\") AND (\"COMPONENT\".\"PROJECT_ID\" = \"ANALYSIS\".\"PROJECT_ID\") " +
"WHERE \"COMPONENT\".\"PROJECT_ID\" = ?";

public static final String QUERY_ALL_FINDINGS = "SELECT " +
public static final String QUERY_ALL_FINDINGS = "SELECT DISTINCT " +
"\"COMPONENT\".\"UUID\"," +
"\"COMPONENT\".\"NAME\"," +
"\"COMPONENT\".\"GROUP\"," +
Expand Down

0 comments on commit fa3cc93

Please sign in to comment.