Failing to validate GPL licenses
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
Research direction
Start at licensing.validate() and reproduce the reported GPL examples, including 'LGPLv2.1', 'GPLv2', and 'GPL2'. Check how space-separated and comma-separated license values are handled; done should mean the intended GPL inputs validate consistently and comma-separated values no longer raise an invalid-character exception, subject to confirming the expected behavior.
Written by the indexing model from the issue text.
Description
licensing.validate() has 'Unknown license key(s)' error for GPL licenses, e.g. 'LGPLv2.1', 'GPLv2', 'GPL2'.
Side note: Also some images have several licenses, e.g. MIT, GPL2 and others.
When they are listed as 'MIT GPL2' for example, it's okay, validation just fails with errors ('Unknown license key(s)').
But when they are listed with commas instead - 'MIT,GPL2' it throws an exception for invalid characters.
In some cases, f.e. photon:3.0 the licenses come in this form.
The latter can be easily resolved, but I just wonder if it would be better those use-cases to be
handled within the validate method instead?
- Dominant language
- Python
- Stars
- 74
- Forks
- 38
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from aboutcode-org/license-expression
-
Bump setuptools dependency and remove wheel dependencyPossibly taken @devnishantt claimed this 51 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 83/100
aboutcode-org/license-expression#132 · 1 comment ·
-
Difficulty 3/5 Half a day Newbie friendliness 55/100
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
aboutcode-org/license-expression#124 · 3 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
aboutcode-org/license-expression#121 · 5 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
aboutcode-org/license-expression#120 · 2 comments · 1 reaction ·
All issues in aboutcode-org/license-expression
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
mohanraj00/entelos#200 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
sweep
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
bketelsen/truenas-mcp#77 ·
Maintainers usually reply within 1 day
-
Console writes URL credentials to the local log, though AGENTS.md says secrets never reach diskOpen
Difficulty 1/5 Under an hour Newbie friendliness 86/100
sandbox-quantum/switch#2163 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
openedx/xblock-lti-consumer#765 ·
Maintainers usually reply within 1 day