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
package s3api
import (
"net/http"
"github.com/seaweedfs/seaweedfs/weed/s3api/s3err"
)
// rejectAmbiguousSubresource applies the same one-operation-per-request rule
// validateRequestPath enforces inside bucket routes to the routes outside them,
// so the check runs once for every request the router serves.
func rejectAmbiguousSubresource(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
if hasAmbiguousSubresource(r.URL.Query()) {
s3err.WriteErrorResponse(w, r, s3err.ErrInvalidRequest)
return
}
next.ServeHTTP(w, r)
})
}