Skip to content

Inconsistent behaviour between LicenseCompareHelper methods when called with official MIT license text #234

@pmonks

Description

@pmonks

When the various org.spdx.utility.compare.LicenseCompareHelper methods are called with the official MIT license text, the library gives inconsistent results (emoji represent whether each one is an expected result or not):

  • .isTextStandardLicense("MIT", <text>).isDifferenceFound() returns false
  • .isStandardLicenseWithinText(<text>, "MIT") returns false
  • .matchingStandardLicenseIds(<text>) returns an empty array ❌
  • .matchingStandardLicenseIdsWithinText(<text>) returns an empty array ❌

Tested with Spdx-Java-Library v.1.11 and SPDX license list 3.23.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions