Project

Profile

Help

Backport #8757

closed

backport 7316 to 3.11: Files are not being deleted from storage when calling the method delete()

Added by jsherril@redhat.com over 1 year ago. Updated over 1 year ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Estimated time:
Triaged:
Yes
Sprint Candidate:
No
Tags:
Katello
Sprint:
Sprint 97
Quarter:

Related issues

Related to Pulp - Issue #7316: Files are not being deleted from storage when calling the method delete()CLOSED - CURRENTRELEASEbmbouterActions
Actions #1

Updated by daviddavis over 1 year ago

  • Related to Issue #7316: Files are not being deleted from storage when calling the method delete() added
Actions #2

Updated by fao89 over 1 year ago

  • Assignee set to bmbouter
  • Triaged changed from No to Yes
  • Sprint set to Sprint 97
Actions #3

Updated by pulpbot over 1 year ago

  • Status changed from NEW to POST

Added by bmbouter over 1 year ago

Revision 6be6542f

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 an UploadChunk.post_delete() signal handler which correctly handles the UploadChunk.file file deletion.

backports #7316

fixes #8757

(cherry picked from commit b38df5ff05e4f1095f6c35847ce843fc5123cdfe)

Actions #5

Updated by bmbouter over 1 year ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #6

Updated by bmbouter over 1 year ago

  • Sprint/Milestone set to 3.11.2
Actions #7

Updated by bmbouter over 1 year ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF