Skip to content

Conversation

@qtomlinson
Copy link
Collaborator

No description provided.

When processing scancode result, license information is first derived from package level data.  When this is not available, ScanCodeSummarizer goes through the root files to look for license.  Filtering for root files is based on case sensitive file path matching.  In maven packaging, META/INF directory is the standard (see https://issues.apache.org/jira/browse/MJAR-73?attachmentOrder=desc, and https://issues.apache.org/jira/browse/MEAR-30).  Change the location for maven to reflect the casing.

utils.getLicenseLocations is also used in utils.isLicenseFile.  isLicenseFile uses case insensitive matching.  Preserve this case insensitive file path matching by converting the result from getLicenseLocations to lowercase there.

Test case:
https://clearlydefined.io/definitions/maven/mavencentral/org.flywaydb/flyway-core/9.20.0
https://dev.clearlydefined.io/definitions/maven/mavencentral/org.flywaydb/flyway-core/7.7.2

Task: clearlydefined#846
@qtomlinson qtomlinson marked this pull request as ready for review November 16, 2023 21:25
@qtomlinson
Copy link
Collaborator Author

@jeffwilcox @JamieMagee @elrayle The maven fix was split from the draft PR. Ready for review.

@qtomlinson qtomlinson requested a review from elrayle November 22, 2023 21:31
Copy link
Collaborator

@elrayle elrayle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! It's going to be great to have a chunk of the NOASSERTIONs cleared up. Thanks for putting in this fix.

@qtomlinson qtomlinson merged commit 6e88ccf into clearlydefined:master Dec 4, 2023
@qtomlinson qtomlinson deleted the qt/fix_maven_sourcearchive branch December 4, 2023 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants