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
fix: mount proxyByFiler write error: wrong jwt
zemul91cbaef02b7b
diff --git a/weed/server/filer_server_handlers.go b/weed/server/filer_server_handlers.goindex 454148e664..54ddfb8b23 100644--- a/weed/server/filer_server_handlers.go+++ b/weed/server/filer_server_handlers.go@@ -30,12 +30,6 @@ func (fs *FilerServer) filerHandler(w http.ResponseWriter, r *http.Request) {return}- isReadHttpCall := r.Method == "GET" || r.Method == "HEAD"- if !fs.maybeCheckJwtAuthorization(r, !isReadHttpCall) {- writeJsonError(w, r, http.StatusUnauthorized, errors.New("wrong jwt"))- return- }-// proxy to volume serversvar fileId stringif strings.HasPrefix(r.RequestURI, "/?proxyChunkId=") {@@ -48,6 +42,12 @@ func (fs *FilerServer) filerHandler(w http.ResponseWriter, r *http.Request) {return}+ isReadHttpCall := r.Method == "GET" || r.Method == "HEAD"+ if !fs.maybeCheckJwtAuthorization(r, !isReadHttpCall) {+ writeJsonError(w, r, http.StatusUnauthorized, errors.New("wrong jwt"))+ return+ }+stats.FilerRequestCounter.WithLabelValues(r.Method).Inc()defer func() {stats.FilerRequestHistogram.WithLabelValues(r.Method).Observe(time.Since(start).Seconds())