Skip to content

SPDX 2.3: LicenseRefs should not be case insensitive #393

@goneall

Description

@goneall

According to the spec license expressions case sensitivity section, SPDX license IDs should be treated as case insensitive while LicenseRef's should be considered case sensitive.

Currently, if 2 license refs are found that differ only in case, an error is generated.

This situation should be allowed.

For example:

{
      "licenseId": "LicenseRef-BSD-3-clause-GENERIC",
      "extractedText": "NOASSERTION",
      "name": "BSD-3-clause-GENERIC"
    },
[...]
    {
      "licenseId": "LicenseRef-BSD-3-clause-generic",
      "extractedText": "NOASSERTION",
      "name": "BSD-3-clause-generic"
    },

should be allowed.

The error generated is Analysis exception processing SPDX file: Object URI ...#LicenseRef-BSD-3-clause-generic already exists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions