LDEV-XXXX: ExtensionProvider.detail() must not overwrite lite .lex with lite.asc - #2852
Merged
michaeloffner merged 2 commits intoOct 5, 2026
Merged
Conversation
…y .asc RepoReader.read() remapped both classifier=lite/extension=lex and classifier=lite/extension=lex.asc to key "lite", so the GPG signature URL overwrote the real -lite.lex artifact. Use classifier+".asc" when the extension ends with .asc; keep plain classifier otherwise. Includes TestBox regression test against mail-extension 1.1.0.9-SNAPSHOT.
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.
Jira: TBD (filing as Gian)
Bug:
ExtensionProvider.detail()/LuceeExtension()for a SNAPSHOT that publishes aliteclassifier returns the GPG signature URL under keyliteinstead of the.lexartifact. Keylite.ascis missing. Keyslex,lex.asc,pom,pom.ascare correct.Confirmed on Lucee 8.0 with mail-extension
1.1.0.9-SNAPSHOT; identical buggy remapping in coreRepoReader.read()on 7.0, 7.1, and 8.0. Not in 6.2 (no core ExtensionProvider/RepoReader). Loader'slucee.loader.engine.mvn.RepoReaderalready usesclassifier.extensionkeys — unchanged.Cause:
endElementstores internal keys asclassifier + "." + extension(lite.lex,lite.lex.asc), butread()remapped both to"lite"via classifier alone, so the later HashMap entry overwrote the real lite.lexURL with the.ascURL.Fix: in
RepoReader.read()only — if classifier is non-empty, use classifier, orclassifier + ".asc"when extension ends with.asc; else use extension; elsee.getKey().Test:
test/tickets/LDEVXXXX.cfc— assertsliteends with-lite.lex(not.asc) andlite.ascis present for mail-extension1.1.0.9-SNAPSHOT(network to Sonatype snapshots, same pattern as existingLuceeExtension/ListExtensionstests).Targeting 7.0 only (merge-up to 7.1→8.0).