Skip to content

feat(storage): respect com.google.cloud.storage.Hasher.read system property in JSON read paths#13526

Draft
nidhiii-27 wants to merge 1 commit into
disable-bidi-checksum-newfrom
fix-json-read-checksum-property-new
Draft

feat(storage): respect com.google.cloud.storage.Hasher.read system property in JSON read paths#13526
nidhiii-27 wants to merge 1 commit into
disable-bidi-checksum-newfrom
fix-json-read-checksum-property-new

Conversation

@nidhiii-27

Copy link
Copy Markdown
Contributor

This PR changes the checksum verification on JSON read paths to use Hasher.readHasher() instead of Hasher.defaultHasher(). This respects the system property com.google.cloud.storage.Hasher.read to allow disabling of client-side checksums on JSON read paths.

[Generated-by: AI]

…operty in JSON read paths

Changed checksum verification to use Hasher.readHasher() instead of Hasher.defaultHasher() in HttpDownloadSessionBuilder and HttpStorageRpcHasherHelper.

[Generated-by: AI]

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

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 updates the hasher initialization in HttpDownloadSessionBuilder and HttpStorageRpcHasherHelper to use Hasher.readHasher() instead of Hasher.defaultHasher(), and applies minor formatting to ReadAsSeekableChannel. There are no review comments, and I have no feedback to provide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant