-
-
Notifications
You must be signed in to change notification settings - Fork 657
Open
Labels
Description
Current Behavior
Setup a policy with condition
{
"subject": "PACKAGE_URL",
"operator": "NO_MATCH",
"value": "pkg:maven/com.mysql/[email protected]?type=jar"
}
Upload a BOM:
{
"bomFormat": "CycloneDX",
"specVersion": "1.5",
"version": 1,
"components": [
{
"type" : "library",
"group" : "com.mysql",
"name" : "mysql-connector-j",
"version" : "8.0.33",
"purl" : "pkg:maven/com.mysql/[email protected]?type=jar"
}
]
}
Observe that the policy is triggered.
If you define a policy with condition (notice no ?type)
{
"subject": "PACKAGE_URL",
"operator": "NO_MATCH",
"value": "pkg:maven/com.mysql/[email protected]"
}
Then the policy will not trigger for the above BOM
Expected Behavior
PURL policy condition should match a component with exactly the same PURL
Dependency-Track Version
4.13.2
Dependency-Track Distribution
Container Image
Database Server
PostgreSQL
Database Server Version
No response
Browser
N/A
Checklist
- I have read and understand the contributing guidelines
- I have checked the existing issues for whether this defect was already reported
t-swstk