From 1aec168c8480b09e9428218374f86bdd2cfa1636 Mon Sep 17 00:00:00 2001 From: ebozduman Date: Fri, 16 Oct 2020 09:30:18 -0700 Subject: [PATCH] fix: azure gateway should reject bucket names with "." (#10635) --- cmd/gateway/azure/gateway-azure.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/gateway/azure/gateway-azure.go b/cmd/gateway/azure/gateway-azure.go index 4bf96bf03..7ce30ac01 100644 --- a/cmd/gateway/azure/gateway-azure.go +++ b/cmd/gateway/azure/gateway-azure.go @@ -559,7 +559,8 @@ func (a *azureObjects) StorageInfo(ctx context.Context, _ bool) (si minio.Storag // MakeBucketWithLocation - Create a new container on azure backend. 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{} }