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

Open
opened 2025-12-28 17:37:21 +00:00 by sami · 2 comments
Owner

Originally created by @evgeniiz321 on GitHub (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

Originally created by @evgeniiz321 on GitHub (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
Author
Owner

@roman-khimov commented on GitHub (Nov 9, 2023):

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

@roman-khimov commented on GitHub (Nov 9, 2023): Wow. That's an interesting one. We really use NNS to store container names and dot obviously creates a subdomain.
Author
Owner

@roman-khimov commented on GitHub (Apr 30, 2025):

Related to https://github.com/nspcc-dev/neofs-contract/issues/245

@roman-khimov commented on GitHub (Apr 30, 2025): Related to https://github.com/nspcc-dev/neofs-contract/issues/245
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neofs-s3-gw#423
No description provided.