Skip to content

Checksums: lack of information#1917

Open
cstamas wants to merge 1 commit into
apache:masterfrom
cstamas:checksums-lack-of-info
Open

Checksums: lack of information#1917
cstamas wants to merge 1 commit into
apache:masterfrom
cstamas:checksums-lack-of-info

Conversation

@cstamas

@cstamas cstamas commented Jun 10, 2026

Copy link
Copy Markdown
Member

Issue: TrustedChecksumsArtifactResolverPostProcessor uses wrong ctor of ChecksumFailureExxeption and thus, created exceptions with lack of information. This was easy mistake to do, as exception already had way too many constructors.

Fix: This exception is quite special, as it covers many cases: real mismatch, processing issues during checksum calculation and lack of checksums. The Resolver intent is to always provide as much information as possible. Hence, deprecated all constructors, not using them in production code, instead using new provided helper methods for 3 cases (mismatch, lack of and processing error), making sure that in each case we provide as much information as possible.

This exception is quite special, as it covers many cases:
real mismatch, processing issues during checksum calculation
and lack of checksums.

Deprecated all constructors and not using them in production code,
instead provided helper methods for 3 cases, making sure that in
each case we provide as much information as possible.
@cstamas cstamas added this to the 2.0.19 milestone Jun 10, 2026
@cstamas cstamas self-assigned this Jun 10, 2026
@cstamas cstamas added the bug Something isn't working label Jun 10, 2026
@cstamas cstamas marked this pull request as ready for review June 10, 2026 12:06
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