mirror of
https://github.com/minio/minio.git
synced 2025-11-21 10:16:03 -05:00
fs mode: List already existing buckets with capital letters (#7244)
if a bucket with `Captialized letters` is created, `InvalidBucketName` error will be returned. In the case of pre-existing buckets, it will be listed. Fixes #6938
This commit is contained in:
@@ -157,7 +157,7 @@ func (web *webAPIHandlers) MakeBucket(r *http.Request, args *MakeBucketArgs, rep
|
||||
}
|
||||
|
||||
// Check if bucket is a reserved bucket name or invalid.
|
||||
if isReservedOrInvalidBucket(args.BucketName) {
|
||||
if isReservedOrInvalidBucket(args.BucketName, true) {
|
||||
return toJSONError(errInvalidBucketName)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user