Skip to content

Eclipse Public License v2.0 matches to epl-1.0 with epl_no-version.RULE #3961

Description

@jonna-debricked

Description

Error in parsing version for Eclipse Public License v2.0, which trigger the wrong rule (rid=epl_no-version.RULE).

The correct rule ( rid=epl-2.0_7.RULE) is triggered for both Eclipse Public License v 2.0 and Eclipse Public License 2.0.
Eclipse Public License v1.0 trigger the correct rule (rid=epl-1.0_18.RULE)

How To Reproduce

license_cache = cache.get_index()
matches = license_cache.match(
        query_string="Eclipse Public License v2.0", min_score=0
)
---> [LicenseMatch: 'epl-1.0', lines=(1, 1), matcher='2-aho', rid=epl_no-version.RULE, sc=98.0, cov=100.0, len=3, hilen=1, rlen=3, qreg=(0, 2), ireg=(0, 2)]

System configuration

  • What OS are you running on? Linux
  • What version of scancode-toolkit was used to generate the scan file? 31.2.1 (also in latest version 32.2.0)
  • What installation method was used to install/run scancode? pip (python 3.9)

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions