distribution/registry
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
..
api fix: if reference exceeds the threshold return 400 and detail 2023-11-22 16:06:33 +00:00
auth feat(linter): enable errcheck linter in golangci-lint 2023-11-18 07:19:24 +00:00
handlers feat(linter): enable errcheck linter in golangci-lint 2023-11-18 07:19:24 +00:00
listener feat(linter): enable errcheck linter in golangci-lint 2023-11-18 07:19:24 +00:00
middleware Merge pull request #2752 from davidswu/registry-driver-middleware 2023-06-21 10:06:13 -07:00
proxy feat(linter): enable errcheck linter in golangci-lint (#4158) 2023-11-21 11:57:34 +00:00
storage fix: if reference exceeds the threshold return 400 and detail 2023-11-22 16:06:33 +00:00
doc.go Move initialization code from main.go to the registry package 2015-09-09 14:39:31 -07:00
registry.go feat(linter): enable errcheck linter in golangci-lint 2023-11-18 07:19:24 +00:00
registry_test.go feat(linter): enable errcheck linter in golangci-lint 2023-11-18 07:19:24 +00:00
root.go feat(linter): enable errcheck linter in golangci-lint 2023-11-18 07:19:24 +00:00