spdx / spdx/spdx-java-model-2_X

licenseref-case-sensitive should be considered invalid

Open
#24 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug wontfix
Dominant language
Java
Stars
1
Forks
3
Avg merge
6h 40m
Merged PRs (30d)
3

Description

case-sensitive4.spdx.txt

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.