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:
Ramkumar Chinchani
2022-03-04 23:21:30 +00:00
committed by Ramkumar Chinchani
parent 95e4b2054b
commit 4be2652085
2 changed files with 2 additions and 9 deletions
-7
View File
@@ -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.