Skip to content
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

DocumentNamespace is missing in spdx output #2344

Closed
alpianon opened this issue Dec 8, 2020 · 0 comments · Fixed by #2351
Closed

DocumentNamespace is missing in spdx output #2344

alpianon opened this issue Dec 8, 2020 · 0 comments · Fixed by #2351
Labels

Comments

@alpianon
Copy link
Contributor

alpianon commented Dec 8, 2020

Description

Please leave a brief description of the bug or feature request:

DocumentNamespace is missing in spdx output, while it is mandatory according to spdx spec. Spdx files without DocumentNamespace cannot be validated by spdx-tools

How To Reproduce

Tell us how to reproduce the issue.

  • Perform a scan with --spdx-tv outfile.spdx option
  • Try to validate the spdx output file with java -jar spdx-tools-2.2.4-jar-with-dependencies.jar Verify outfile.spdx or to convert it to RDF with java -jar spdx-tools-2.2.4-jar-with-dependencies.jar TagToRdf outfile.spdx outfile.rdf
  • You get the error The SPDX Document Namespace must be set before other SPDX document properties are set.

System configuration

For bug reports, it really helps us to know:

  • What OS are you running on? Linux
  • What version of scancode-toolkit was used to generate the scan file? 3.2.3
  • What installation method was used to install/run scancode? pip
@alpianon alpianon added the bug label Dec 8, 2020
pombredanne added a commit to alpianon/scancode-toolkit that referenced this issue Jun 17, 2021
Format code. Refactor common code between RDF and TV.

Signed-off-by: Philippe Ombredanne <[email protected]>
pombredanne added a commit to alpianon/scancode-toolkit that referenced this issue Jun 17, 2021
pombredanne added a commit to alpianon/scancode-toolkit that referenced this issue Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant