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

SPDX file with invalid Created value is flagged as valid by tools-java #157

Open
vargenau opened this issue Feb 8, 2024 · 1 comment
Open

Comments

@vargenau
Copy link
Contributor

vargenau commented Feb 8, 2024

fusionforge.spdx.json.txt

pyspdxtools -i fusionforge.spdx.json
ERROR:root:There have been issues while parsing the provided document:
Error while parsing Document: ["time data '2024-02-08T16:01:17.629Z' does not match format '%Y-%m-%dT%H:%M:%SZ'"]

java-tools 1.1.8 says:

This SPDX Document is valid.

It seems tools-python is right, no decimal part for seconds is allowed by the spec.

@goneall
Copy link
Member

goneall commented Feb 10, 2024

I just checked the spec for the created field and I agree, the decimals are not allowed.

Once I'm done with the 3.0 version, I'll look into this issue.

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

2 participants