-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
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
[ingestion/data-quality issue] SPDX files with a relative path are failing #1545
Comments
hmm im wondering whether we can just URL encode the subpath which i believe is what we do for the qualifiers and versions now |
so based on looking at packgeurl-go, the |
How about moving the filename into a qualifier instead, shouldn't be too much of an issue i think. |
Yeah based on looking at packageurl-go, moving it to qualifier should fix this error and not cause the same conflict as with |
You can also fix the Go library with a PR FWIW, but please avoid changing the PURL spec ;) |
Thanks @pombredanne we have created a PR here: package-url/packageurl-go#68 |
Closed by #1546 |
Describe the bug
SPDX documents that contain a relative file path in the
fileName
property throws an error. For example, this SPDX has a relative file path of./include-path
:This fails to parse with the following error:
This bug was introduced in 00d978b. It appears to be related to bumping
github.com/package-url/packageurl-go
fromv0.1.1
tov0.1.2
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Relative file paths in SPDX files section shouldn't throw error
Screenshots
If applicable, add screenshots to help explain your problem.
GUAC version
Latest from main
Additional context
Ran into this issue on internal SBOMs generated using sbom-tool which consistently uses relative file paths.
The SPDX 2.3 spec states:
which would indicate that this should not be throwing an error
The text was updated successfully, but these errors were encountered: