1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-26 13:29:12 -05:00
forgejo/routers/api/packages
KN4CK3R a1ae83f36e
Workaround for container registry push/pull errors (#21862)
This PR addresses #19586

I added a mutex to the upload version creation which will prevent the
push errors when two requests try to create these database entries. I'm
not sure if this should be the final solution for this problem.

I added a workaround to allow a reupload of missing blobs. Normally a
reupload is skipped because the database knows the blob is already
present. The workaround checks if the blob exists on the file system.
This should not be needed anymore with the above fix so I marked this
code to be removed with Gitea v1.20.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-11-25 13:47:46 +08:00
..
composer Add support for HEAD requests in Maven registry (#21834) 2022-11-24 16:25:13 +02:00
conan Add support for HEAD requests in Maven registry (#21834) 2022-11-24 16:25:13 +02:00
container Workaround for container registry push/pull errors (#21862) 2022-11-25 13:47:46 +08:00
generic Add support for HEAD requests in Maven registry (#21834) 2022-11-24 16:25:13 +02:00
helm Add support for HEAD requests in Maven registry (#21834) 2022-11-24 16:25:13 +02:00
helper Add Package Registry (#16510) 2022-03-30 16:42:47 +08:00
maven Add support for HEAD requests in Maven registry (#21834) 2022-11-24 16:25:13 +02:00
npm Add support for HEAD requests in Maven registry (#21834) 2022-11-24 16:25:13 +02:00
nuget Add support for HEAD requests in Maven registry (#21834) 2022-11-24 16:25:13 +02:00
pub Add support for HEAD requests in Maven registry (#21834) 2022-11-24 16:25:13 +02:00
pypi Add support for HEAD requests in Maven registry (#21834) 2022-11-24 16:25:13 +02:00
rubygems Add support for HEAD requests in Maven registry (#21834) 2022-11-24 16:25:13 +02:00
vagrant Add support for HEAD requests in Maven registry (#21834) 2022-11-24 16:25:13 +02:00
api.go Add support for HEAD requests in Maven registry (#21834) 2022-11-24 16:25:13 +02:00