S3: Content length error on put object request #5807
Labels
bug
This issue is a bug.
closing-soon
This issue will close in 4 days unless further comments are made.
p1
This is a high priority issue
potential-regression
Marking this issue as a potential regression to be checked by team member
Describe the bug
Since version
2.30.1
, I'm getting an error when I do a put request using multipart upload and the transfer manager. If I pass thecontentLength
parameter in the put object request, I get an error likeRequest content was only 4196352 bytes, but the specified content-length was 20981796 bytes.
I don't get this if I leave the content length parameter off of the put object request.
I'm also setting it on the request body, but there it's not causing an issue.
Regression Issue
Expected Behavior
The upload should still work as before 2.30.1
Current Behavior
I get an error:
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
AWS Java SDK version used
2.30.1
JDK version used
openjdk 23 2024-09-17 OpenJDK Runtime Environment (build 23+37-2369) OpenJDK 64-Bit Server VM (build 23+37-2369, mixed mode, sharing)
Operating System and version
MacOS 15.0.1 (24A348)
The text was updated successfully, but these errors were encountered: