From 6ff80f4ed3ce39481520b36fb5cabaa1dd3463fd Mon Sep 17 00:00:00 2001 From: drivebyer Date: Tue, 15 Nov 2022 04:02:49 +0800 Subject: [PATCH] feat: validate bucket name the same as minio-go (#1340) --- pkg/apis/minio.min.io/v2/helper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/apis/minio.min.io/v2/helper.go b/pkg/apis/minio.min.io/v2/helper.go index 4c247dffb11..b6066c32867 100644 --- a/pkg/apis/minio.min.io/v2/helper.go +++ b/pkg/apis/minio.min.io/v2/helper.go @@ -806,7 +806,7 @@ func (t *Tenant) CreateUsers(madmClnt *madmin.AdminClient, userCredentialSecrets // CreateBuckets creates buckets and skips if bucket already present func (t *Tenant) CreateBuckets(minioClient *minio.Client, buckets ...Bucket) error { for _, bucket := range buckets { - if err := s3utils.CheckValidBucketName(bucket.Name); err != nil { + if err := s3utils.CheckValidBucketNameStrict(bucket.Name); err != nil { return err } // create each bucket with a 20 seconds timeout