From 864cd00b9e8163ec14a807c5c7c9d00cbe371553 Mon Sep 17 00:00:00 2001 From: Andrei Aaron Date: Tue, 26 Mar 2024 18:38:58 +0200 Subject: [PATCH] fix: Allow GET requests on repositories not found in metadb (#2351) The issue was reported on Slack. Signed-off-by: Andrei Aaron --- pkg/api/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/routes.go b/pkg/api/routes.go index 9defd48e..b9001b5f 100644 --- a/pkg/api/routes.go +++ b/pkg/api/routes.go @@ -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