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:
Andrei Aaron
2024-03-26 18:38:58 +02:00
committed by GitHub
parent 5639dfb2a9
commit 864cd00b9e
+1 -1
View File
@@ -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