-
Notifications
You must be signed in to change notification settings - Fork 135
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
Error message when parsing files and mandatory fields are missing. #155
Comments
Kate, I have confirmed your speculation, adding the missing fields got me pass this error, perhaps an error like "Missing required fields { missing fields} would be more helpful. Thanks for your help. |
Moving this over to the new version of the SPDX tools which is now used in the online tools. |
I'm not able to reproduce the same error. When I run validate using the above file text, I get an invalid document error due to the SPDX Document Ref. The When I fix that, I get a different error: Looking at the document, line 10 contains When I remove the invalid package, I get the following error:
Fixing this, I get the error Removing the download location, I got the following message:
BTW - I did find a separate issue parsing external Ref's while investigating this, issue spdx/spdx-java-tagvalue-store#3 |
Thanks, Gary. I'll tackle these issues. Is there an online, web spdx verifier I can use to check for errors? |
@rjb4standards Yes - https://tools.spdx.org/app/validate/ I thought that was the origin of these errors. Are you using the command line tool at https://github.com/spdx/tools? If so, you can try a more up to date command line tool at https://github.com/spdx/tools-java |
@rjb4standards Were these error found using the Python parser? If so, you can ignore all my comments above on the error handling and I'll transfer this over to the Python tools repo. |
Gary, yhe Python parser is reporting these errors, but the online validator, my new best friend, reports no errors. |
Moving this issue to the Python tools repo |
This issue seems to be related to #185. Feeding the python parser with the file from above with the mentioned fixes leads to the error:
|
With the current release, the mentioned file can be parsed without errors, so I will close this issue. |
Using the tools.spdx.dev and feeding in file:
The error message, “Only one PackageName allowed, extra at line: 21” is confusing and misleading.
as I think the problem is missing mandatory fields. But please confirm if this is indeed the case.
The text was updated successfully, but these errors were encountered: