Skip to content

S3 Transfer Manager doesn't support bucket names with dots (.). #2864

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

Closed
anca-jalbum opened this issue Nov 20, 2021 · 2 comments · Fixed by #2976
Closed

S3 Transfer Manager doesn't support bucket names with dots (.). #2864

anca-jalbum opened this issue Nov 20, 2021 · 2 comments · Fixed by #2976
Labels
bug This issue is a bug. transfer-manager

Comments

@anca-jalbum
Copy link

Describe the bug

When using the S3TransferManager (preview) with a bucket containing the dot char, for example "foo.bar", you get an error.

Expected behavior

Using a bucket with dots should work, as that is a valid character in bucket names.

Current behavior

The error you get is:

Caused by: software.amazon.awssdk.crt.s3.CrtS3RuntimeException: Retry cannot be attempted because the maximum number of retries has been exceeded. AWS_IO_MAX_RETRIES_EXCEEDED(1069) at com.amazonaws.s3.S3NativeClient$1.onFinished(S3NativeClient.java:206)

The real cause is a TLS (SSL) negotiation error. The library apparently tries to use the access point:
https://[bucketname].s3.[region].amazonaws.com
This works fine for bucketnames without dots, since the SSL certificate is tied to *.s3.[region].amazonaws.com.
With a dot (or any number of dots) the domain no longer matches the SSL certificate and the connection can't be established.

The fact that you only get a very generic error makes the cause of the error very difficult to find. Severe errors like these must be propagated all the way to the caller!

Steps to Reproduce

Create a bucket with a dot and try to use it with the S3TransferManager.

Possible Solution

The standard AWS Java v2 SDK (and every other tool I've used) work fine using the "dotted" bucket names, so there must be a solution for this.

Context

No response

AWS Java SDK version used

2.17.75

JDK version used

1.8

Operating System and version

MacOS 11.6.1

@anca-jalbum anca-jalbum added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Nov 20, 2021
@debora-ito
Copy link
Member

Hi @anca-jalbum thank you for reporting. We'll work on a fix.

@debora-ito debora-ito removed the needs-triage This issue or PR still needs to be triaged. label Jan 14, 2022
@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

aws-sdk-java-automation added a commit that referenced this issue Jan 19, 2024
…00e667a8b

Pull request: release <- staging/c5f1ee70-76c3-4f8b-812b-07c00e667a8b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. transfer-manager
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants