Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting files sometimes does not delete the S3 file #7521

Open
daneryl opened this issue Dec 3, 2024 · 0 comments
Open

Deleting files sometimes does not delete the S3 file #7521

daneryl opened this issue Dec 3, 2024 · 0 comments

Comments

@daneryl
Copy link
Collaborator

daneryl commented Dec 3, 2024

Describe the bug
While deleting a file via direct delete or deleting its entity if S3 throws an error like a timeout, all the entries in the DB are properly deleted but the file in S3 remains.

To Reproduce
Steps to reproduce the behavior:

  1. Start a blank state uwazi with S3 configured.
  2. Create an entity with file or files attached
  3. Make sure S3 service is down
  4. Delete the file
  5. An error is logged about S3 being down
  6. The file does not exist in DB anymore but its in the S3 bucket.

Expected behavior
This whole process should be a transaction, if there is an error deleting the file, nothing gets deleted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants