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
skip if entry.Extended map is nil.
ruitao.liuc4f0fd6e1b2b
diff --git a/weed/s3api/s3api_bucket_handlers.go b/weed/s3api/s3api_bucket_handlers.goindex 1e6d710be4..6b2ed8ef2c 100644--- a/weed/s3api/s3api_bucket_handlers.go+++ b/weed/s3api/s3api_bucket_handlers.go@@ -125,10 +125,13 @@ func (s3a *S3ApiServer) DeleteBucketHandler(w http.ResponseWriter, r *http.RequewriteErrorResponse(w, s3err.ErrNoSuchBucket, r.URL)return}- if id, ok := entry.Extended[xhttp.AmzIdentityId]; ok {- if string(id) != r.Header.Get(xhttp.AmzIdentityId) {- writeErrorResponse(w, s3err.ErrAccessDenied, r.URL)- return++ if entry.Extended != nil {+ if id, ok := entry.Extended[xhttp.AmzIdentityId]; ok {+ if string(id) != r.Header.Get(xhttp.AmzIdentityId) {+ writeErrorResponse(w, s3err.ErrAccessDenied, r.URL)+ return+ }}}@@ -166,10 +169,13 @@ func (s3a *S3ApiServer) HeadBucketHandler(w http.ResponseWriter, r *http.RequestwriteErrorResponse(w, s3err.ErrNoSuchBucket, r.URL)return}- if id, ok := entry.Extended[xhttp.AmzIdentityId]; ok {- if string(id) != r.Header.Get(xhttp.AmzIdentityId) {- writeErrorResponse(w, s3err.ErrAccessDenied, r.URL)- return++ if entry.Extended != nil {+ if id, ok := entry.Extended[xhttp.AmzIdentityId]; ok {+ if string(id) != r.Header.Get(xhttp.AmzIdentityId) {+ writeErrorResponse(w, s3err.ErrAccessDenied, r.URL)+ return+ }}}