GeezerVison is showing github.com — feat(storage): add checksum validation on json read paths by nidhiii-27 · Pull Request #13269 · googleapis/google-cloud-java
Conversation
nidhiii-27
commented
May 26, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Enabled default full object checksum validation for the following:
Storage#readAllBytes(bucket,blob)
Storage.downloadTo(blobId, destination)
Storage.downloadTo(blob, outputStream)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
gemini-code-assist[bot] reacted with eyes emoji
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request introduces client-side CRC32C checksum validation for the HttpStorageRpc transport layer by adding the HttpStorageRpcHasherHelper utility class and integrating it into HttpStorageRpc. Feedback on the changes suggests removing leftover debugging System.out.println statements and simplifying an anonymous Supplier class to a lambda expression.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Wrap download output streams in HashingOutputStream using response-based check (shouldValidate) instead of request headers.
- Refactor load path to use stream-based wrapping and validate(response, activeStream) for on-the-fly checksum validation.
- Add unit tests for shouldValidate method under HttpStorageRpcHasherHelperTest covering status 200, status 206 (full and partial ranges), and transcoded headers.
- Support correct checksum verification of suffix range requests (e.g. -500 for object of size 500) that result in a full object download.
[Generated-by: AI]
… in HttpStorageRpc
- Add testRead_rangeSuffixFullLength_successfulCrc32cValidation and testRead_rangeSuffixFullLength_failedCrc32cValidation to HttpStorageRpcChecksumTest.
- Verifies that suffix range requests (e.g., -500 for object of size 500) trigger proper CRC32C checksum validation at the HttpStorageRpc layer.
[Generated-by: AI]
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
lqiu96
pushed a commit
that referenced
this pull request
Jun 30, 2026
Enabled default full object checksum validation for the following:
`Storage#readAllBytes(bucket,blob)`
`Storage.downloadTo(blobId, destination)`
`Storage.downloadTo(blob, outputStream)`
---------
This was referenced Jul 1, 2026
Reviewers
Dhriti07
Dhriti07 approved these changes
+1 more reviewer
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|