Skip to content

tools-python and tools-java behave differently #68

@yakuri

Description

@yakuri

Greetings, I used the attached tag:value SBOM and found that VALIDATE was NG in tools-python and VALIDATE was OK in tools-java.
Which VALIDATE is correct?

test-sbom.spdx.txt

What is unique about this SBOM is the presence of “FilesAnalyzed: false” on line 28 in the Relationships block.

> java -jar tools-java-2.0.0-RC1-jar-with-dependencies.jar Verify test-sbom.spdx
This SPDX Document is valid.

> pip install spdx-tools==0.8.3
> pyspdxtools -i test-sbom.spdx
Generating LALR tables
ERROR:root:There have been issues while parsing the provided document:
Element Package is not the current element in scope, probably the expected tag to start the element (PackageName) is missing. Line: 28

Sincerely,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions