Skip to content
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

CreateBucket: dot character is not properly parsed in bucket names #903

Open
evgeniiz321 opened this issue Nov 9, 2023 · 1 comment
Open
Labels
bug Something isn't working I3 Minimal impact S4 Routine U4 Nothing urgent

Comments

@evgeniiz321
Copy link

evgeniiz321 commented Nov 9, 2023

Due to https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html:

Bucket names can consist only of lowercase letters, numbers, dots (.), and hyphens (-).

test_bucket_create_naming_good_contains_period currently fails with:

2023-11-09T04:26:17.194Z	error	handler/util.go:29	call method	{"status": 500, "request_id": "2a51845f-8d45-48fd-b997-24f5a4efc113", "method": "CreateBucket", "bucket": "yournamehere-jzqvzsxa3jf0if1f-aaa.111", "object": "", "description": "could not create bucket", "error": "create container: save container via connection pool: put: status: code = 1024 message = chain/client: contract execution finished with state FAULT; exception: at instruction 1050 (THROW): unhandled exception: \"invalid domain name format\""}

Seems like when '.' is specified, a part of a bucket name is interpreted as a domain name

@evgeniiz321 evgeniiz321 added bug Something isn't working triage labels Nov 9, 2023
@evgeniiz321 evgeniiz321 changed the title CreateBucket: dot character is not supported in bucket names CreateBucket: dot character is not properly parsed in bucket names Nov 9, 2023
@roman-khimov
Copy link
Member

Wow. That's an interesting one. We really use NNS to store container names and dot obviously creates a subdomain.

@roman-khimov roman-khimov added U2 Seriously planned S4 Routine I3 Minimal impact labels Dec 20, 2023
@roman-khimov roman-khimov added U4 Nothing urgent and removed U2 Seriously planned labels Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working I3 Minimal impact S4 Routine U4 Nothing urgent
Projects
None yet
Development

No branches or pull requests

2 participants