S3Client#getObject response input streams contains more than it should #5819
Labels
bug
This issue is a bug.
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
When switching from v2.29.x to v2.30.x I noticed the ResponseInputStream given by S3Client#getObject contains more than it should. The running example will be an object containing
abc
.Regression Issue
Expected Behavior
S3Client#getObject#readAllBytes contains only
Current Behavior
S3Client#getObject#readAllBytes contains
Reproduction Steps
Download an existing object through S3Client#getObject.
Possible Solution
Revert to 2.29.x
Additional Information/Context
Discovered through test in LocalStack testcontainer
localstack/localstack:0.11.3
AWS Java SDK version used
v2.30.3 (bug confirmed for v2.30.0 - v2.30.3)
JDK version used
openjdk version "21.0.5" 2024-10-15 OpenJDK Runtime Environment (build 21.0.5+11-Ubuntu-1ubuntu122.04) OpenJDK 64-Bit Server VM (build 21.0.5+11-Ubuntu-1ubuntu122.04, mixed mode, sharing)
Operating System and version
Linux 6.8.0-51-generic #52~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Dec 9 15:00:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: