You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I upload a BOM(json format) containing two URLs separated by a space, as shown below, I encounter an error stating, "The uploaded BOM is invalid."
[DependencyTrack] {"status":400,"title":"The uploaded BOM is invalid","detail":"Schema validation failed","errors":["$.components[567].externalReferences[0].url: does not match the iri-reference pattern must be a valid RFC 3987 IRI-reference","$.components[567].externalReferences[0].url: does not match the iri-reference pattern must be a valid RFC 3987 IRI-reference","$.components[567].externalReferences[0].url: does not match the regex pattern ^urn:cdx:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/[1-9][0-9]*$","$.components[567].externalReferences[0].url: does not match the iri-reference pattern must be a valid RFC 3987 IRI-reference","$.components[567].externalReferences[0].url: does not match the regex pattern ^urn:cdx:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/[1-9][0-9]*#.+$"]}
Interestingly, the same BOM in XML format works without issues.
Steps to Reproduce
1.Attached sample BOM(json format) for issue reproduction. sbom-1.json
Expected Behavior
Expecting BOM(json) upload to be successful as in case of XML BOM format.
Current Behavior
When I upload a BOM(json format) containing two URLs separated by a space, as shown below, I encounter an error stating, "The uploaded BOM is invalid."
Error
Interestingly, the same BOM in XML format works without issues.
Steps to Reproduce
1.Attached sample BOM(json format) for issue reproduction.
sbom-1.json
Expected Behavior
Expecting BOM(json) upload to be successful as in case of XML BOM format.
Dependency-Track Version
4.7.x
Dependency-Track Distribution
Container Image
Database Server
PostgreSQL
Database Server Version
No response
Browser
Google Chrome
Checklist
The text was updated successfully, but these errors were encountered: