Closed pmonks closed 1 year ago
I found one issue in the library and one actual difference in the CDDL-1.1 license.
The library issue is related to the first non-optional text being an alt/var text. I created a pull request to resolve - PR #173
With this fix, the CDDL match is still failing. I noticed a section character in the JavaMail text that may be causing issues.
Since this is going to take some time to debug, it will probably have to wait until the next release of the libraries.
Here are the issues I found:
§
in line 310 in the CDDL 1.0 license text.Fifth Floor
compared to the SPDX license. This can be fixed in the license XML.GNU General Public License version 2 cover the whole combination.
in the JavaMail license has the number 2 whereas the SPDX license exception text does not - GNU General Public License cover the whole combination
@pmonks since I fixed the one tool issue, I'll close this issue. We can open 2 separate issues in the license list XML if we want to add alt
or optional
text to fix the matching for the GPL-2.0 and Classpath-exception-2.0 texts.
The license text for
JavaMail
is not being correctly matched byorg.spdx.utility.compare.LicenseCompareHelper.matchingStandardLicenseIdsWithinText()
ororg.spdx.utility.compare.LicenseCompareHelper.matchingStandardLicenseExceptionIdsWithinText()
. This license text appears to beCDDL-1.1 OR GPL-2.0 WITH Classpath-exception-2.0
, so I'd expect the former method to return["CDDL-1.1", "GPL-2.0"]
(or similar identifiers for GPL-2.0 - I realise there are several variants on each GPL license id that may all be matched simultaneously), and the latter method to return["Classpath-exception-2.0"]
.Note: tested with Spdx-Java-Library v1.1.5.