distribution/registry/storage/cache
Milos Gajdos 35abc92237
fix: if reference exceeds the threshold return 400 and detail
If the reference in the API request exceeds the threshold allowed by the
reference package (NOTE: this isn't defined by distribution
specification!) we return 500 back to the client.

This commit makes sure we return 400 and the explanation of the error in
the returned JSON payload.

Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
2023-11-22 16:06:33 +00:00
..
cachecheck format code with gofumpt 2022-11-03 22:48:20 +01:00
memory fix: if reference exceeds the threshold return 400 and detail 2023-11-22 16:06:33 +00:00
metrics go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
redis fix: if reference exceeds the threshold return 400 and detail 2023-11-22 16:06:33 +00:00
cache.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
cache_test.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
cachedblobdescriptorstore.go Move context package internal 2023-10-27 10:58:37 -04:00