We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PURL - 'pkg:maven/org.apache.commons:io@1.3.4' passes as valid
'pkg:maven/org.apache.commons:io@1.3.4'
p.PackageURL.fromString('pkg:maven/org.apache.commons:io@1.3.4') PackageURL { type: 'maven', name: 'org.apache.commons:io', namespace: null, version: '1.3.4', qualifiers: null, subpath: null }
However, it shouldn't be because the namespace is not percent-encoded.
The text was updated successfully, but these errors were encountered:
If you .toString() it then it's encoded:
.toString()
p.PackageURL.fromString('pkg:maven/org.apache.commons:io@1.3.4').toString() // => 'pkg:maven/org.apache.commons%3Aio@1.3.4'
Sorry, something went wrong.
Hi @jdalton - The concern is that PURL such as:
pkg:maven/org.apache.commons:io@1.3.4
should be marked invalid for violating the namespace rule:
However, because packageurl-js parses these successfully, they show up in SBOM as valid entries, causing identification issues.
No branches or pull requests
PURL -
'pkg:maven/org.apache.commons:io@1.3.4'
passes as validHowever, it shouldn't be because the namespace is not percent-encoded.
The text was updated successfully, but these errors were encountered: