Unable to upload content to S3 (400 Bad Request) #4691
Labels
closing-soon
This issue will close in 4 days unless further comments are made.
guidance
Question that needs advice or information.
Describe the bug
Unable to upload content to S3, using S3AsyncClient. Server response is 400 Bad Request
Expected Behavior
Succefully upload content without any errors
Current Behavior
I get an exception when I try to upload content:
Reproduction Steps
Possible Solution
No response
Additional Information/Context
As far as I understand, this error occurres, because there is no bucket name in request (encodedPath=/5cd6dd73-97af-49b2-8a71-2d250c22736b, according to the log. It contains key only, not bucket name)
Request generates by
PutObjectRequestMarshaller
class. It contains constant:Why
requestUri
contains key placeholder only? According to configuration https://github.com/aws/aws-sdk-java-v2/blob/2.17.295/services/s3/src/main/resources/codegen-resources/service-2.json, bucket and key are required:AWS Java SDK version used
2.21.21
JDK version used
java 17.0.6 2023-01-17 LTS Java(TM) SE Runtime Environment (build 17.0.6+9-LTS-190) Java HotSpot(TM) 64-Bit Server VM (build 17.0.6+9-LTS-190, mixed mode, sharing)
Operating System and version
Ubuntu 22.04.3 LTS
The text was updated successfully, but these errors were encountered: