SUSE / Portus

Authorization service and frontend for Docker registry (v2)
http://port.us.org/
Apache License 2.0
3k stars 471 forks source link

Fix tag size calculation crashing on special manifests #2287

Closed StarGate01 closed 4 years ago

StarGate01 commented 4 years ago

This pull request fixes the tag size calculation for some exotic manifests, like those used by Docker BuildX / buildkit for build caching. Those manifests do not always contain the size field.

This pull request changes the behavior of the tag size calculation to return 0 in those cases instead of crashing the background worker.

Signed-off-by: Christoph Honal christoph.honal@web.de

stale[bot] commented 4 years ago

Thanks for all your contributions! This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.