https://bugs.linuxfoundation.org/show_bug.cgi?id=1285

             Bug #: 1285
           Summary: Odd error when LicenseListVersion appears before
                    Creator in SPDX tag file.
           Product: SPDX
           Version: 2.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Pretty Printer
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified


Created attachment 486
  --> https://bugs.linuxfoundation.org/attachment.cgi?id=486
test.tag file from SPDX 2.0 tools with LicenseListVersion moved before Creator
tag.

Using the spdx-tools-2.0.0 release, an error is generated if processing a tag
file and the LicenseListVersion tag appears before any of the Creator tags. I
didn't see any specific ordering required in the SPDX 2.0 specification, so
assumed that any order of these tags ought to be ok.

The attached file is the example tag file that comes with the spdx 2.0.0 tools,
and I have moved the LicenseListVersion tag up the file to be before the first
Creator tag. When I process this file I receive the following error:

> spdx-tools-2.0.0-jar-with-dependencies.jar TagToRDF test.tag test.rdf
The following verifications failed for the SpdxDocument:
    Creator does not start with one of Person:, Organization:, Tool:

Having put some prints around this error message to see what is not matching, I
can that it is trying to process the '1.19' of the version as the creator where
it is expecting Person, Organisation, Tool.

-- 
Configure bugmail: https://bugs.linuxfoundation.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Spdx-tech mailing list
[email protected]
https://lists.spdx.org/mailman/listinfo/spdx-tech

Reply via email to