Closed
Description
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
- 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
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