mirror of
https://github.com/minio/minio.git
synced 2025-04-24 20:30:47 -04:00
fix: azure gateway should reject bucket names with "." (#10635)
This commit is contained in:
parent
21a549a83b
commit
1aec168c84
@ -559,7 +559,8 @@ func (a *azureObjects) StorageInfo(ctx context.Context, _ bool) (si minio.Storag
|
|||||||
|
|
||||||
// MakeBucketWithLocation - Create a new container on azure backend.
|
// MakeBucketWithLocation - Create a new container on azure backend.
|
||||||
func (a *azureObjects) MakeBucketWithLocation(ctx context.Context, bucket string, opts minio.BucketOptions) error {
|
func (a *azureObjects) MakeBucketWithLocation(ctx context.Context, bucket string, opts minio.BucketOptions) error {
|
||||||
if opts.LockEnabled || opts.VersioningEnabled {
|
// Filter out unsupported features in Azure and return immediately with NotImplemented error
|
||||||
|
if opts.LockEnabled || opts.VersioningEnabled || strings.ContainsAny(bucket, ".") {
|
||||||
return minio.NotImplemented{}
|
return minio.NotImplemented{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user