s3gw-tech / s3gw

Container able to run on a Kubernetes cluster, providing S3-compatible endpoints to applications.
https://s3gw.tech
Apache License 2.0
145 stars 21 forks source link

rgw/sfs: weirdly unable to create buckets that start with `bucket[A-Z]+` #832

Closed jecluis closed 1 year ago

jecluis commented 1 year ago

See below:

(venv) ➜ joao@adamastor aquarist-labs aws --endpoint-url http://127.0.0.1:7480 s3api create-bucket --bucket bucketA

argument of type 'NoneType' is not iterable
(venv) ➜ joao@adamastor aquarist-labs aws --endpoint-url http://127.0.0.1:7480 s3api create-bucket --bucket asd    
(venv) ➜ joao@adamastor aquarist-labs aws --endpoint-url http://127.0.0.1:7480 s3api create-bucket --bucket bucketB

argument of type 'NoneType' is not iterable
(venv) ➜ joao@adamastor aquarist-labs aws --endpoint-url http://127.0.0.1:7480 s3api create-bucket --bucket bucketC

argument of type 'NoneType' is not iterable
(venv) ➜ joao@adamastor aquarist-labs aws --endpoint-url http://127.0.0.1:7480 s3api create-bucket --bucket bucketCasd

argument of type 'NoneType' is not iterable
(venv) ➜ joao@adamastor aquarist-labs aws --endpoint-url http://127.0.0.1:7480 s3api create-bucket --bucket bucket123 
(venv) ➜ joao@adamastor aquarist-labs 

And I can confirm this only happens if we have something like bucketB, because bucketb works.

It's just the weirdest thing.

irq0 commented 1 year ago

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

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

jecluis commented 1 year ago

well, doh