fix: Allow GET requests on repositories not found in metadb (#2351)
The issue was reported on Slack. Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
This commit is contained in:
parent
5639dfb2a9
commit
864cd00b9e
@ -514,7 +514,7 @@ func (rh *RouteHandler) GetManifest(response http.ResponseWriter, request *http.
|
||||
|
||||
if rh.c.MetaDB != nil {
|
||||
err := meta.OnGetManifest(name, reference, mediaType, content, rh.c.StoreController, rh.c.MetaDB, rh.c.Log)
|
||||
if err != nil && !errors.Is(err, zerr.ErrImageMetaNotFound) {
|
||||
if err != nil && !errors.Is(err, zerr.ErrImageMetaNotFound) && !errors.Is(err, zerr.ErrRepoMetaNotFound) {
|
||||
response.WriteHeader(http.StatusInternalServerError)
|
||||
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user