Skip to content

Commit

Permalink
fix: Allow GET requests on repositories not found in metadb (#2351)
Browse files Browse the repository at this point in the history
The issue was reported on Slack.

Signed-off-by: Andrei Aaron <[email protected]>
  • Loading branch information
andaaron authored Mar 26, 2024
1 parent 5639dfb commit 864cd00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 864cd00

Please sign in to comment.