-
Notifications
You must be signed in to change notification settings - Fork 866
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
S3Client.deleteObjects doesn't work in 2.30.0 #5805
Comments
Taking a look |
Hi @wendigo, we tested My guess is that the issue is on the Minio/third-party side, they have to accommodate the changes released in One workaround is to pin the Java SDK version to |
@debora-ito why the |
The exception is being returned by Minio, the SDK is only unmarshalling the response. There's probably a difference in how Minio implemented the s3 compatibility internally. |
|
To save other readers the trip over to the Minio issues board, they have not yet decided whether they're going to adapt to this change or not. So there's no timeline on resolution. My personal opinion is that obviously they'll be forced to do it eventually if they want to stay current and keep calling themselves S3-compatible, unless the AWS team roll this change back. Until they decide on a timeline I'm forced to not upgrade to 2.30.x. |
Update: Minio have said they'll make the change (thanks Minio team!). No timeline yet but it does sound like it's mostly a cherry-pick. |
Thank you for keeping us posted @henricook. Minio released support for the S3 checksum changes, so I'll go ahead and close this. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
deleteObjects
now fails withCaused by: software.amazon.awssdk.services.s3.model.S3Exception: Missing required header for this request: Content-Md5. (Service: S3, Status Code: 400, Request ID: 181B4664E1D4B169, Extended Request ID: 39697cb5cac07bf2a227e0cd44c7b2e9184e7598e2abe41c55eb5028b44676ca)
on Minio and other S3-compatible storages, whiledeleteObject
with a single location works just fine.This fails regardless of the:
.responseChecksumValidation()
.requestChecksumCalculation()
set to WHEN_REQUIRED. WHEN_REQUIRED seems to work fine for other API calls but not for
deleteObjects
.Regression Issue
Expected Behavior
I'd expect
deleteObjects
to work the same as in the 2.29.x.Current Behavior
For deleteObjects:
Since I'm passing list of locations, I'm not sure why the
Content-Md5
would be required.For deleteObject: passes.
Reproduction Steps
Batch delete files stored on Minio. Single delete works fine.
Possible Solution
Downgrade to 2.29.x
Additional Information/Context
No response
AWS Java SDK version used
2.30.0
JDK version used
23
Operating System and version
Linux
The text was updated successfully, but these errors were encountered: