mirror of
				https://github.com/minio/minio.git
				synced 2025-10-29 15:55:00 -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. | ||||
| 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{} | ||||
| 	} | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user