Official Apache-1.1 license text is not being matched correctly by LicenseCompareHelper.matchingStandardLicenseIdsWithinText()
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 42/100
Piste de recherche
Commencez par LicenseCompareHelper.matchingStandardLicenseIdsWithinText() et la balise de texte alternatif Clause5 dans src/Apache-1.1.xml. Reproduisez l’échec à l’aide du texte officiel de la licence Apache-1.1 et examinez comment cette balise est convertie et comment les caractères de commentaire et les retours à la ligne sont gérés. C’est terminé lorsque le texte officiel correspond à la licence standard attendue sans la différence Clause5 signalée.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
When org.spdx.utility.compare.LicenseCompareHelper.matchingStandardLicenseIdsWithinText() is run on the official Apache-1.1 license text, it fails to find any matches, and I believe I've narrowed down the problem to the Clause5 alternative text tag in the template; if I remove the example header from the license text, and run org.spdx.utility.compare.LicenseCompareHelper.isTextStandardLicense().getDifferenceMessage() on it, I get:
Variable text rule combined-bullet-Clause5 did not match the compare text starting at line #31 column #1 "5" while processing rule var: combined-bullet-Clause5
When I manually converted that <alt> tag into a Java regex, and bullet 5 from the Apache 1.1 license text is manually cleansed of comment characters and newlines, I do get a match, so I'm pretty confident the problem is in the library rather than the template. Beyond that I'm not really sure what the root cause might be - whether it has to do with comment character handling, regexification of that particular <alt> tag, or something else entirely.
This was reproduced with Spdx-Java-Library v1.11 and SPDX license list v3.23.
- Langage dominant
- Java
- Étoiles
- 71
- Forks
- 43
- Merge moyen
- 23 h 56 min
- PR mergées (30 j)
- 5
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de spdx/Spdx-Java-Library
-
question
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 30/100
spdx/Spdx-Java-Library#449 ·
-
question
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 30/100
spdx/Spdx-Java-Library#398 ·
-
wontfix
Difficulté 3/5 1-2 jours Accessibilité débutants 45/100
spdx/Spdx-Java-Library#393 · 2 commentaires · 1 réaction ·
-
matching
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
spdx/Spdx-Java-Library#392 · 4 commentaires ·
-
enhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 30/100
spdx/Spdx-Java-Library#390 · 11 commentaires · 1 réaction ·
Toutes les issues de spdx/Spdx-Java-Library
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
-
account bug communication lecture
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
area/server bug P2
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
modelcontextprotocol/java-sdk#1196 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
-
Consumer progress rows interleave topics with equal queue IDsPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
apache/rocketmq-dashboard#7250 ·
Les mainteneurs répondent en général sous 3 jours