Skip to content

Commit

Permalink
feat: validate bucket name the same as minio-go (#1340)
Browse files Browse the repository at this point in the history
  • Loading branch information
drivebyer authored Nov 14, 2022
1 parent e421540 commit 6ff80f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apis/minio.min.io/v2/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6ff80f4

Please sign in to comment.