-
Notifications
You must be signed in to change notification settings - Fork 135
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
"don't work for SPDX v2.2" #196
Comments
@zvr The cve-bin-tool support for SPDX validates against the SPDX 2.2 examples. The comment related to the Python tools https://github.com/spdx/tools-python which do not currenty validate against the SPDX 2.2 standard. |
Yes, @anthonyharrison, I know ;-) Ah, sorry: the "Is this correct?" question was not addressed to you; it was to the developers of spdx-tools. |
@thanks for the report! Do you have a particular test case and do you mind to check if this works against the latest main branch? |
@pombredanne The test case I have been using is to take the examples and use the test SPDX documents from https://github.com/spdx/spdx-spec/tree/development/v2.2.2/examples. I have been using the latest code in the repo (and not the version released on PyPi). For the tag value (using pp_tv.py I get an error reporting that the Annotation Type should be REVIEW or OTHER (which it is!); there is also an error reporting that the filename should be defined after the PackageName.
followed by an OrderError exception For the RDF file (using pp_rdf.py), I get an Index out of range exception when processing the SPDX_uri
The actual use case that I am using is to extract the PackageName, Version pairs to use to find security vulnerabilites, so most of the content is ignored! |
Serializing 2.2 per the jsonschema at #197 |
Related to @anthonyharrison's comment above - would it make sense to automatically use https://github.com/spdx/spdx-spec/tree/master/examples automatically in tests? currently the master branch examples (e.g., https://github.com/spdx/spdx-spec/blob/master/examples/SPDXJSONExample-v2.2.spdx.json) also fail using the |
#211 is a duplicate of this issue resp. a subproblem of this one. As commented in the other issue I tried to analyze the errors described by @anthonyharrison but couldn't fix them yet:
I would agree with @nettrino that it would be best to use the examples from the spec for the tests. |
I would close this issue for now as the described errors for tag-value files are fixed and all example files for version 2.2 except the rdf example from the spec repo can be parsed now. Concerning the rdf file I opened another issue (#323) which is more specific than this one. If anyone has any objections, please ping and/or reopen. |
On intel/cve-bin-tool#1382, @anthonyharrison writes:
and mentions the test files in https://github.com/spdx/spdx-spec/tree/development/v2.2.2/examples
Is this correct?
The text was updated successfully, but these errors were encountered: