-
Notifications
You must be signed in to change notification settings - Fork 864
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. |
|
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: