-
Notifications
You must be signed in to change notification settings - Fork 593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
s3.deleteObjects sends CRC32 checksum even if requestChecksumCalculation
is set to WHEN_REQUIRED
#6819
Comments
This is not a regression, as default algorithm was changed to CRC32 as per discussions with S3 team in #6749 Adding a |
What's the issue that you're facing @OIRNOIR? I verified through the minimal repro provided above that deleteObjects call is succesful. |
I'm using Cloudflare R2, and I can reproduce the issue this way:
|
It crashes with a 501 error: |
It is a regression because not all third party S3 apis (like Cloudflare R2) support CRC32 and return 501 whenever CRC32 (or any other checksum algorithm) is attempted. Implementing your CustomHandler, the observed code logs the same two headers, even with requestChecksumCalculation set to WHEN_REQUIRED. However, upon downgrading to @aws-sdk/[email protected], the only header listed is My guess as to why you can't reproduce the error is that you are not using Cloudflare R2. |
Closing as AWS SDK for JavaScript is designed to be used with AWS services. If you're using a different cloud service, please refer to their documentation on compatibility. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Checkboxes for prior research
Describe the bug
s3.deleteObjects sends CRC32 checksum even if
requestChecksumCalculation
is set toWHEN_REQUIRED
Regression Issue
SDK version number
@aws-sdk/[email protected]
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
All
Reproduction Steps
Observed Behavior
The CRC32 checksum is sent even if
requestChecksumCalculation
is set toWHEN_REQUIRED
Expected Behavior
When
requestChecksumCalculation
is set toWHEN_REQUIRED
, should it sendmd5
like it was done in<=v3.729.0
?Example output in
v3.726.0
Possible Solution
No response
Additional Information/Context
No response
The text was updated successfully, but these errors were encountered: