Repository navigation
Closed
Description
Hi @goneall
I have a valid SPDX2 file, FN.spdx (uploaded here as FN.spdx.txt).
I convert to SPDX3.
Then the validator gives the following errors:
his SPDX Document is not valid due to:
Relationship error: Relationship error: Missing required license information from files for busybox in FN in FN in FN
Relationship error: Relationship error: Missing required package files for busybox in FN in FN in FN
Relationship error: Relationship error: Missing required package verification code for package busybox in FN in FN in FN
Relationship error: Relationship error: Missing required license information from files for bash in FN in FN in FN
Relationship error: Relationship error: Missing required package files for bash in FN in FN in FN
Relationship error: Relationship error: Missing required package verification code for package bash in FN in FN in FN
Relationship error: Relationship error: Missing required license information from files for base-files in FN in FN in FN
Relationship error: Relationship error: Missing required package files for base-files in FN in FN in FN
Relationship error: Relationship error: Missing required package verification code for package base-files in FN in FN in FN
Relationship error: Relationship error: Missing required license information from files for blkid in FN in FN in FN
Relationship error: Relationship error: Missing required package files for blkid in FN in FN in FN
Relationship error: Relationship error: Missing required package verification code for package blkid in FN in FN in FN
Relationship error: Relationship error: Missing required license information from files for 464xlat in FN in FN in FN
Relationship error: Relationship error: Missing required package files for 464xlat in FN in FN in FN
Relationship error: Relationship error: Missing required package verification code for package 464xlat in FN in FN in FN
Relationship error: Relationship error: Missing required license information from files for block-mount in FN in FN in FN
Relationship error: Relationship error: Missing required package files for block-mount in FN in FN in FN
Relationship error: Relationship error: Missing required package verification code for package block-mount in FN in FN in FN
Relationship error: Missing required license information from files for FN in FN
Relationship error: Missing required package files for FN in FN
Relationship error: Missing required package verification code for package FN in FN
Reacted by Arthit Suriyawongkul
Metadata
Metadata
Assignees
Labels
No labels
Activity
vargenau commentedon Feb 25, 2025
This is with Release Candidate 2 for version 2.0.0 of the SPDX Java Tools
goneall commentedon Feb 25, 2025
I just ran verify against the attached FN.spdx.txt file and I got the following errors:
vargenau commentedon Feb 26, 2025
Hi @goneall
I had not checked the validity of the file with RC2.
However, both tools-python and tools-java version 1.1.8 say the file is valid SPDX.
And I do not really understand what the errors are.
Could you please clarify what the errors are and how to fix them?
goneall commentedon Feb 27, 2025
Interesting that 1.1.8 has different results. I'll look into it.
goneall commentedon Feb 27, 2025
I think most, if not all, the errors are due to the
FilesAnalyzedflag not being specified on packages that do not have the files orPackageVerificationCodefields forFilesAnalyzed=Truewhich is the default.I just looked back in the spec and there isn't any clear mention that these are required. I do recall a discussion where they should be present, but I can remove the checks. @kestewart - any opinion on if these are required?
It's curious that the tools-java version 1.1.8 didn't flag the same issues since that part of the code hasn't really changed.
vargenau commentedon Mar 5, 2025
Hi @goneall
Thank you for the explanation.
Adding
FilesAnalyzed: falsemakes the warning disappear.In the SPDX 2.2 spec, it says for Package Verification Code:
3.9.3 Cardinality: Mandatory, one if FilesAnalyzed is true or omitted, zero (must be omitted) if FilesAnalyzed is false.
So I think the SBOM is invalid. I would leave the checks.
vargenau commentedon Mar 5, 2025
I have created spdx/tools-python#845 for tools-python.
goneall commentedon Apr 14, 2025
@vargenau - Can this issue be closed?
goneall commentedon Apr 16, 2025
@vargenau - I'll go ahead and close this based on the above comments - but if you feel it is still an issue, please re-open or create a new issue