Skip to content

Never index checksum or signature files as artifacts - #797

Merged
slachiewicz merged 1 commit into
masterfrom
agent/mindexer-sidecar-recognition
Sep 26, 2026
Merged

slachiewicz merged 1 commit into
masterfrom
agent/mindexer-sidecar-recognition

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

Follow-up to #693. DefaultArtifactContextProducer also skips any file that the GavCalculator parses as a hash or signature, so a checksum type added to the calculator can no longer be indexed as the main artifact while isIndexable still lacks its suffix. M2ArtifactRecognizer.isChecksum, isPom and isMetadata now recognize .sha256 and .sha512 as well as .sha1 and .md5.

Verified: both new tests fail without their fix and pass with it.

DefaultArtifactContextProducer now also skips any file the GavCalculator
parses as a hash or signature, so the isIndexable suffix list can no longer
fall behind the calculator (the cause of #692). M2ArtifactRecognizer
recognizes .sha256 and .sha512 checksums too.
@slachiewicz slachiewicz added the bug Something isn't working label Sep 26, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review September 26, 2026 10:53
@slachiewicz
slachiewicz merged commit ae2b36c into master Sep 26, 2026
18 checks passed
@slachiewicz
slachiewicz deleted the agent/mindexer-sidecar-recognition branch September 26, 2026 10:58
@github-actions github-actions Bot added this to the 7.1.7 milestone Sep 26, 2026
slachiewicz added a commit that referenced this pull request Sep 26, 2026
#797 and #800 merged cleanly but #800 removed the assertEquals import that
#797's new test still used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant