Skip to content

Conversation

@github-actions
Copy link
Contributor

Cherry-picked from #58467

…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.
@github-actions github-actions bot requested a review from morrySnow as a code owner November 28, 2025 08:50
@morningman morningman closed this Dec 1, 2025
@morningman morningman reopened this Dec 1, 2025
@morningman
Copy link
Contributor

run buildall

@morrySnow morrySnow changed the title branch-3.1: [[fix](rest-s3)Set AWS Request Checksum Calculation only if not set void issues on non-S3 storage #58467 branch-3.1: [fix](rest-s3)Set AWS Request Checksum Calculation only if not set void issues on non-S3 storage #58467 Dec 1, 2025
@morrySnow morrySnow merged commit 2504c90 into branch-3.1 Dec 1, 2025
24 checks passed
@github-actions github-actions bot deleted the auto-pick-58467-branch-3.1 branch December 1, 2025 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants