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

SPDXTools does not accept exceptions in PackageLicenseInfoFromFiles tag #137

Open
goneall opened this issue Jan 2, 2018 · 1 comment
Open

Comments

@goneall
Copy link
Member

goneall commented Jan 2, 2018

exception.tag.txt
When converting an SPDX tag file to rdf using SPDXTools then an error is produced if the PackageLicenseInfoFromFiles tag contains the name of a license exception. The SPDX specification says that this tag captures all the license types, but without the use of expressions. My interpretation of this is that an expression such as GPL-3.0 WITH Classpath-exception-2.0 must be represented by two separate instances of this tag, for example:

PackageLicenseInfoFromFiles: GPL-3.0
PackageLicenseInfoFromFiles: Classpath-exception-2.0

Therefore I think the SPDXTools ought to accept exceptions for this tag.

I have attached this case as an example, which can be run with:

java -jar spdx-tools-2.0.0-jar-with-dependencies.jar TagToRDF exception.tag exception.rdf
The following verifications failed for the SpdxDocument:
Invalid license id 'Classpath-exception-2.0'. Must start with 'LicenseRef-' and made up of the characters from the set 'a'-'z', 'A'-'Z', '0'-'9', '+', '_', '.', and '-'.
Missing required license text for Classpath-exception-2.0

Tag/value file attached.

From Bugzilla Bug 1291

@goneall
Copy link
Member Author

goneall commented Apr 9, 2018

The SPDX tools currently accept expressions for PackageLicenseInforFromFiles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant