-
Notifications
You must be signed in to change notification settings - Fork 41
Fail a license compare if there is text following a matching license #97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Gary O'Neall <[email protected]>
|
Note that this fix is not yet complete. It is failing one of the regression tests where a license template ends with optional text. |
The current `<alt match ... name="period">` has an incorrect regex that will not match the pattern `.,` which is present in the test file. This will cause test failures once the LicenseListPublisher is updated with spdx/Spdx-Java-Library#97
The current `<alt match ... name="period">` has an incorrect regex that will not match the pattern `.,` which is present in the test file. This will cause test failures once the LicenseListPublisher is updated with spdx/Spdx-Java-Library#97 This is the same fix as #1587
Signed-off-by: Gary O'Neall <[email protected]>
An extra line present in the test file. This will cause test failures once the LicenseListPublisher is updated with spdx/Spdx-Java-Library#97
This will cause test failures once the LicenseListPublisher is updated with spdx/Spdx-Java-Library#97
|
The following license fail to match against the text after this fix and should be investigated and resolved:
|
|
Note that almost all of the test failures due to the license matcher has an Optional at the very end of the XML file (most are optional Exhibits). Also note that the error indicates the missmatch is the first word after the start of the optional text. |
|
@swinslow - looks like all of the errors in the LicenseListXML comparison are due to errors in the XML markups. I fixed all exception GFDL-1.1-invariants-or-later, SGI-B-1.0, and SGI-B-1.1. For these, I think we should just remove the extra matching stuff in the last optional section. It would probably take 3-4 hours to get these more complex markups to work. Let me know what you think. |
|
Thanks @goneall! This is awesome. Thanks for submitting all the fixes in the license-list-XML repo. I will try to take a closer look at this soon. I'm about to be offline for a while, but will aim to review the PRs and the three remaining ones that you mentioned when I'm able to do so. |
Add brackets '[]' to punctuation when tokenizing license strings for compare. This fixes an error when comparing the SGI-B-1.0 and SGI-B-1.1 license texts. Signed-off-by: Gary O'Neall <[email protected]>
When using the
LicenseCompareHelper.isTextStandardLicenseand there is text in the compare license text following a valid license text match, fail the license compare.This issue was originally raised in spdx/license-list-XML#1583
Signed-off-by: Gary O'Neall [email protected]