DependencyTrack / DependencyTrack/dependency-track

Policy Duplication

Open
#2,146 20 comments 6 reactions 0 assignees View on GitHub
defect p2 size/L
Dominant language
Java
Stars
4.2k
Forks
811
Avg merge
8h 39m
Merged PRs (30d)
237

Description

### Current Behavior

Package matches on a "All" condition
Policy Example
![image](https://user-images.githubusercontent.com/1046836/201387339-d2075f61-7471-4e5a-8636-3fc51079bb41.png)

This reports 3 policy failures per package
![image](https://user-images.githubusercontent.com/1046836/201386952-b0cdc44a-dd71-44c9-8106-94923b618a3d.png)

### Steps to Reproduce

1.Create policy which has multiple conditions
2.Have coponent that could match multiple
3.See multiple

### Expected Behavior

Only 1 policy violation per policy

### Dependency-Track Version

4.6.2

### Dependency-Track Distribution

Container Image

### Database Server

Microsoft SQL Server

### Database Server Version

_No response_

### Browser

N/A

### Checklist

- [X] I have read and understand the [contributing guidelines](https://github.com/DependencyTrack/dependency-track/blob/master/CONTRIBUTING.md#filing-issues)
- [X] I have checked the [existing issues](https://github.com/DependencyTrack/dependency-track/issues) for whether this defect was already reported

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.