You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using B2 (their S3-compatible API) as my storage backend to store attachments, more specifically to store files attached to releases.
Uploading and downloading these attachments works as expected, however if I edit a release to remove an attachment, the file never gets deleted from the remote storage. It is removed from the database and from the UI as expected though.
Steps
Set up an S3 compatible storage for attachments
Create a new release on a repo
Upload a file as an attachment
Save the release
Make note of the object name by hovering the mouse over it
Edit the release
Click on Remove next to the file
Click on Update Release
Verify that the object is still present in the object storage
Previously, deleted release attachments were kept forever on the
external storage.
Note: It may be very slow now if there are many attachments to be
deleted on this release.
Fix#23728
…#23913)
Previously, deleted release attachments were kept forever on the
external storage.
Note: It may be very slow now if there are many attachments to be
deleted on this release.
Fixgo-gitea#23728
…23958)
Backport #23913 by @lunny
Previously, deleted release attachments were kept forever on the
external storage.
Note: It may be very slow now if there are many attachments to be
deleted on this release.
Fix#23728
Co-authored-by: Lunny Xiao <[email protected]>
Description
I'm using B2 (their S3-compatible API) as my storage backend to store attachments, more specifically to store files attached to releases.
Uploading and downloading these attachments works as expected, however if I edit a release to remove an attachment, the file never gets deleted from the remote storage. It is removed from the database and from the UI as expected though.
Steps
Gitea Version
1.19.0
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
https://gist.github.com/belidzs/ab40b7e65f7a8cac9b2434754ad07fa8
Screenshots
No response
Git Version
2.38.4
Operating System
Linux
How are you running Gitea?
It's running in a kubernetes cluster. I've used https://gitea.com/gitea/helm-chart/ to deploy it
Database
PostgreSQL
The text was updated successfully, but these errors were encountered: