SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
verify if bucket exists in GetBucketLocationHandler (#6485)
Tom Crasset551baa44b2f0
diff --git a/weed/s3api/s3api_bucket_handlers.go b/weed/s3api/s3api_bucket_handlers.goindex 7d0d76ea4b..2f535d0d0b 100644--- a/weed/s3api/s3api_bucket_handlers.go+++ b/weed/s3api/s3api_bucket_handlers.go@@ -485,6 +485,13 @@ func (s3a *S3ApiServer) DeleteBucketLifecycleHandler(w http.ResponseWriter, r *h// GetBucketLocationHandler Get bucket location// https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketLocation.htmlfunc (s3a *S3ApiServer) GetBucketLocationHandler(w http.ResponseWriter, r *http.Request) {+ bucket, _ := s3_constants.GetBucketAndObject(r)++ if err := s3a.checkBucket(r, bucket); err != s3err.ErrNone {+ s3err.WriteErrorResponse(w, r, err)+ return+ }+writeSuccessResponseXML(w, r, CreateBucketConfiguration{})}