Official GPL-2.0 license text not recognized
Open
Nobody has claimed this yet.
bug
matching
- Dominant language
- Java
- Stars
- 71
- Forks
- 44
- Avg merge
- 12h 54m
- Merged PRs (30d)
- 7
Description
For the license text https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt I get the following:
System.out.println(Arrays.toString(LicenseCompareHelper.matchingStandardLicenseIds(licenseText)));
System.out.println(LicenseCompareHelper.matchingStandardLicenseIdsWithinText(licenseText));
outputs
[]
[GPL-2.0, GPL-2.0-or-later, GPL-2.0-only]
The two outputs should be the same since the GPL-2.0 license spans the whole file.
Tested with version 1.1.11
This problem is similar to 217
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the discrepancy with the official GPL-2.0 text and the two entry points, matchingStandardLicenseIds and matchingStandardLicenseIdsWithinText. Trace how each method identifies standard licenses and verify that both produce the same IDs when the GPL-2.0 text spans the whole input.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100