spdx / spdx/spdx-java-model-2_X
licenseref-case-sensitive should be considered invalid
Open
Nobody has claimed this yet.
bug
wontfix
- Dominant language
- Java
- Stars
- 1
- Forks
- 3
- Avg merge
- 6h 40m
- Merged PRs (30d)
- 3
Description
Java tools 1.1.8 considers the SPDX as valid.
However, in the line
PackageLicenseDeclared: licenseref-case-sensitive
licenseref-case-sensitive should be flagged as invalid.
Tools Python flags it as invalid:
pyspdxtools -i case-sensitive4.spdx
ERROR:root:The document is invalid. The following issues have been found:
Unrecognized license reference: licenseref-case-sensitive. license_expression must only use IDs from the license list or extracted licensing info, but is: licenseref-case-sensitive
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the attached case-sensitive4.spdx file and reproduce the result using Java tools 1.1.8, focusing on validation of the PackageLicenseDeclared value. Compare it with the reported pyspdxtools result; done means the Java tools reject licenseref-case-sensitive as an unrecognized license reference.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100