Actions
Backport #8757
closedbackport 7316 to 3.11: Files are not being deleted from storage when calling the method delete()
Start date:
Due date:
% Done:
100%
Estimated time:
Triaged:
Yes
Sprint Candidate:
No
Tags:
Katello
Sprint:
Sprint 97
Quarter:
Related issues
Updated by daviddavis over 3 years ago
- Related to Issue #7316: Files are not being deleted from storage when calling the method delete() added
Updated by fao89 over 3 years ago
- Assignee set to bmbouter
- Triaged changed from No to Yes
- Sprint set to Sprint 97
Updated by pulpbot over 3 years ago
- Status changed from NEW to POST
Updated by pulpbot over 3 years ago
Added by bmbouter over 3 years ago
Updated by bmbouter over 3 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset pulpcore|6be6542f05c839f48951386116e02483c8cb9820.
Updated by bmbouter over 3 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions
Fixes deletion of UploadChunk when Upload deletes
According to the Django docs, the
on_delete=models.CASCADE
option does not call Model.delete(), but it does call the Model.post_delete() signal handler.This replaces the
UploadChunk.delete()
with anUploadChunk.post_delete()
signal handler which correctly handles theUploadChunk.file
file deletion.backports #7316
fixes #8757
(cherry picked from commit b38df5ff05e4f1095f6c35847ce843fc5123cdfe)