[S3] Bucket name containing slash character fails with any operation
See original GitHub issueDescribe the bug
After migrating SDKv1 to SDKv2, accessing any bucket resource with any operation: create, upload, list, delete, etc. containing slash character “/” in bucket name fails throwing the following exception: The request signature we calculated does not match the signature you provided. Check your key and signing method
.
Example: Uploading objects to the root of the bucket works, but when we try to save it to a subfolder it fails: Uploading object to “my-bucket” OK Uploading object to “my-bucket/subfolder” FAILS - Note that slash is present!
Expected Behavior
Bucket names with subfolders should work.
Current Behavior
software.amazon.awssdk.services.s3.model.S3Exception: The request signature we calculated does not match the signature you provided. Check your key and signing method.
Reproduction Steps
String bucketName = "my-bucket/subfolder", objectName = "123.jpg";
s3TransferManager.upload(builder -> builder.requestBody(AsyncRequestBody.fromBytes(objectBytes))
.putObjectRequest(request -> request.bucket(bucketName).key(objectName)));
Possible Solution
No response
Additional Information/Context
No response
AWS Java SDK version used
2.17.228
JDK version used
1.8.0_321
Operating System and version
macOS Monterey v12.4
Issue Analytics
- State:
- Created a year ago
- Comments:8
Hello @jereztech ,
Update: This feature request is in our backlog. I will be updating your submission to a feature request
Thank you for your submission. Best,
Yasmine
Hello @maciejwalkowiak ,
Unfortunately, this board does not reflect the current team backlog. We are in the process of updating the team backlog display on GitHub. If this is a feature you would like to see implemented you can showcase your interest by adding a thumbs up emoji 👍🏼 on the feature request.
Best regards,
Yasmine