mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 12:58:02 +08:00
conformance: fix cross-mount behavior when 'from' is missing
fixes issue #442 Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
This commit is contained in:
committed by
Ramkumar Chinchani
parent
95e4b2054b
commit
4be2652085
@@ -716,13 +716,6 @@ func (rh *RouteHandler) CreateBlobUpload(response http.ResponseWriter, request *
|
||||
return
|
||||
}
|
||||
|
||||
from, ok := request.URL.Query()["from"]
|
||||
if !ok || len(from) != 1 {
|
||||
response.WriteHeader(http.StatusMethodNotAllowed)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// zot does not support cross mounting directly and do a workaround creating using hard link.
|
||||
// check blob looks for actual path (name+mountDigests[0]) first then look for cache and
|
||||
// if found in cache, will do hard link and if fails we will start new upload.
|
||||
|
||||
Reference in New Issue
Block a user