mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-15 14:24:52 +08:00
toughen up error handling for invalid fid
This commit is contained in:
@@ -92,7 +92,11 @@ func (vs *VolumeServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request,
|
||||
glog.V(2).Infoln("parsing error:", err, r.URL.Path)
|
||||
return
|
||||
}
|
||||
n.ParsePath(fid)
|
||||
err = n.ParsePath(fid)
|
||||
if err != nil {
|
||||
glog.V(2).Infoln("parsing fid error:", err, r.URL.Path)
|
||||
return
|
||||
}
|
||||
|
||||
glog.V(2).Infoln("volume", volumeId, "reading", n)
|
||||
if !vs.store.HasVolume(volumeId) {
|
||||
|
Reference in New Issue
Block a user