-
Notifications
You must be signed in to change notification settings - Fork 853
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 PUT http with url-connection-client contentEncoding is always "aws-chunked" #4746
Comments
I updated the test case to use AWS s3 via http and not test containers/localstack. |
Hi @youngm, I still can't reproduce the issue, even with UrlConnectionHttpClient. Some steps to try to narrow down the cause:
See
If you share the verbose wirelogs I can take a look. |
@debora-ito did you connect to s3 using http? Not https? |
@youngm I missed that part 🤦🏻♀️ thank you for pointing out. I see the "aws-chunked" in the content-encoding header now, when using HTTP endpoint and UrlConnectionHttpClient. We'll investigate. Can you use ApacheHttpClient in the meantime? |
That's great @debora-ito 😅. I have instead switched to https when using localstack. But http is more conventional when using localstack so I hope you are able to get to the bottom of it. Thanks! |
This works around an issue in aws-sdk-java-v2: aws/aws-sdk-java-v2#4746
This issue is now closed. Comments on closed issues are hard for our team to see. |
Just to add another voice, we're also experiencing this on version 2.24.12. Let me know if I can provide any details that would help. |
The fix was re-introduced via #5043, and released as part of version 2.25.18. |
@debora-ito, We are seeing this issue again in 2.26.25 Metadata of a sample gzipped file
|
@ngudbhav I think this: If you are experiencing issues, please open a new Github issue and provide us a repro code if possible. |
Describe the bug
When putting an S3Object connecting to S3 via http and url-connection-client, the contentEncoding for that object is always "aws-chunked".
Expected Behavior
The contentEncoding should be whatever is set in the
PutObjectRequest
.Current Behavior
contentEncoding is always
aws-chunked
when connecting to s3 via http and url-connection-client.Reproduction Steps
This test creates an object using http s3 and sets a contentEncoding. Note that the contentEncoding is changed to "aws-chunked" by the sdk.
S3Test.java
pom.xml
Possible Solution
PutObjectRequest should behave the same no matter the client used or http vs https. I don't know what exactly is causing the wrong contentEncoding to be sent in this situation.
Additional Information/Context
This is a re-opening of #4725.
AWS Java SDK version used
2.21.16+
JDK version used
17
Operating System and version
Windows 11
The text was updated successfully, but these errors were encountered: