minio / minio-js

MinIO Client SDK for Javascript
https://docs.min.io/docs/javascript-client-quickstart-guide.html
Apache License 2.0
951 stars 277 forks source link

isValidBucketName function verifies that the Bucket has errors #1260

Closed ghost closed 8 months ago

ghost commented 8 months ago

My parameter buctName seems to match alphanumeric start and alphanumeric end but the regex doesn't work;The parameter value I pass is the string minioData image

image

harshavardhana commented 8 months ago

You have D capital that is not an allowed bucket names.

Bucket names are lower case

ghost commented 8 months ago

Thank you for your reminder. However, I remember uppercase names used to be legal. That bucket was created by me in the web management backend before. It's possible that uppercase letters don't comply with regulations now. Thank you again

harshavardhana commented 8 months ago

Thank you for your reminder. However, I remember uppercase names used to be legal. That bucket was created by me in the web management backend before. It's possible that uppercase letters don't comply with regulations now. Thank you again

That was years ago. Not anymore