Skip to content

Official CC-BY-4.0 license text is not being matched correctly by LicenseCompareHelper.matchingStandardLicenseIdsWithinText() #322

Open

Description

@pmonks

When org.spdx.utility.compare.LicenseCompareHelper.matchingStandardLicenseExceptionIdsWithinText() is run on the following CC-BY-*-4.0 license texts, it fails to find any matches:

Furthermore, org.spdx.utility.compare.LicenseCompareHelper.isStandardLicenseWithinText() is also returning false in each of these cases, however org.spdx.utility.compare.LicenseCompareHelper.isTextStandardLicense() (correctly) doesn't find any differences when run on the same texts (and when provided with the appropriate CC-BY-*-4.0 org.spdx.library.model.v3_0_1.expandedlicensing.ListedLicense object).

Perhaps we should add one or more CC-BY- cases to the compare consistency unit test?

This was reproduced with Spdx-Java-Library v2.0.0 and SPDX license list v3.26.0.

Activity

  1. added
    bugSomething isn't working
    matchingLicense matching and recognition
    on Apr 30, 2025
  2. pmonks commented on Apr 30, 2025

    @pmonks
    CollaboratorAuthor

    This may be related to spdx/license-list-XML#2704, if that change hasn't been published yet.

    This may also be related to #230 and #233.

  3. pmonks commented on Sep 24, 2025

    @pmonks
    CollaboratorAuthor

    Just confirming that this issue still exists in version 2.0.1 of Spdx-Java-Library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmatchingLicense matching and recognition

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions