mirror of
https://github.com/project-zot/zot.git
synced 2024-12-30 22:34:13 -05:00
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
1 changed files with 1 additions and 1 deletions
|
@ -514,7 +514,7 @@ func (rh *RouteHandler) GetManifest(response http.ResponseWriter, request *http.
|
||||||
|
|
||||||
if rh.c.MetaDB != nil {
|
if rh.c.MetaDB != nil {
|
||||||
err := meta.OnGetManifest(name, reference, mediaType, content, rh.c.StoreController, rh.c.MetaDB, rh.c.Log)
|
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)
|
response.WriteHeader(http.StatusInternalServerError)
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue