-
Notifications
You must be signed in to change notification settings - Fork 27
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
SBOM XML namespace cannot be parsed by dependencytrack #88
Comments
We might need the inputs from @jkowalleck |
sure can. |
Thanks @jkowalleck Lets remove them then! Do you plan to do the PR yourself @hedtke ? |
Anyway
If this was true, then @DependencyTrack was bugged. |
This is the problematic file. It is our guess that the namespace is the issue. When I switch from XML to JSON, dependency track works fine. Maybe the problem is somewhere else? |
the XML is invalid to the schema. this is due to a bug in details: |
The extension needs to be changed, because it is not compatible with v5. I could look into that within the next days. Just installing v5 instead of v4 does not work: |
i do not see why you would care for here are some hints for migrating your code: def cyclonedx_major_version_is_5() -> bool:
try:
from cyclonedx import __version__
return __version__[0] == 5
except ImportError:
return False more important is the API change related to the |
PR created: #89 |
Uploading an SBOM in XML 1.4 format results in parsing errors in dependencytrack. The namespace ns0 cannot be parsed properly.
The image shows two SBOMs in XML format. The one created by this extension uses
xmlns:ns0
and the parser crashes:The other example created with another tool does not use the namespace and dependencytrack works fine
Can we deactivate the ns0?
The text was updated successfully, but these errors were encountered: