distribution/registry/storage/cache/memory
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
..
memory.go fix: if reference exceeds the threshold return 400 and detail 2023-11-22 16:06:33 +00:00
memory_test.go registry/storage/cache/memory: Use LRU cache to bound cache size 2022-09-07 07:20:06 -07:00