Repository navigation
Conversation
SPDX 2.3.1 treats SPDXRef- ids that differ only by case as different elements. License identifiers stay case-insensitive.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #463.
InMemSpdxStorestored every object URI under a lowercased key, so two SPDX element ids that differ only by case were rejected as duplicates. SPDX 2.3.1 treats those ids as different elements.SPDXRef-fragment keeps its original case.SPDXRef-Arcturus.oggandSPDXRef-arcturus.oggcan both be stored.LicenseRef-NameandLicenseRef-nameare still the same id, matching SPDX license expression case rules.#is still lowercased, so only the element id case changes.Spec:
Test plan
mvn -Dtest=InMemSpdxStoreTest test(25 tests, 0 failures)SPDXRef-Arcturus.oggandSPDXRef-arcturus.oggas two elements, and deleting one leaves the otherLicenseRef-NameandLicenseRef-nameas a duplicate and resolves the original case