branch-3.1: [fix](rest-s3)Set AWS Request Checksum Calculation only if not set void issues on non-S3 storage #58467#58506
Merged
morrySnow merged 1 commit intobranch-3.1from Dec 1, 2025
Conversation
…oid issues on non-S3 storage (#58467) AWS SDK for Java v2 uses the system property AwsSystemSetting.AWS_REQUEST_CHECKSUM_CALCULATION to control request payload checksum calculation. According to the official discussion AWS SDK v2 Discussion aws/aws-sdk-java-v2#5802 By default, the SDK may automatically calculate checksums when required. For AWS S3, setting the default value "WHEN_REQUIRED" ensures checksums are calculated only when necessary, providing both compatibility and performance benefits. For non-S3 object storage (such as COS, OSS, OBS), using this default value may cause errors, for example: `aws-chunked encoding is not supported with the specified x-amz-content-sha256 value` because these services do not support AWS-specific chunked encoding or SHA256 checksum.
Contributor
|
run buildall |
morrySnow
approved these changes
Dec 1, 2025
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.
Cherry-picked from #58467