Project

Profile

Help

Issue #7316

Files are not being deleted from storage when calling the method delete()

Added by lmjachky 2 months ago. Updated 28 days ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 79
Quarter:

Description

According to the docs, FileField does not handle the removal of files: https://docs.djangoproject.com/en/3.1/releases/1.3/#deleting-a-model-doesn-t-delete-associated-files

PulpTemporaryFile contains such a field. When calling the method delete(), the file is not removed from the storage. We need to create our custom handlers for that.

Associated revisions

Revision f508d6b2 View on GitHub
Added by Lubos Mjachky 2 months ago

Delete associated files from the storage

closes #7316

History

#1 Updated by pulpbot 2 months ago

  • Status changed from NEW to POST

#2 Updated by fao89 2 months ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 79

#3 Updated by daviddavis 2 months ago

We should avoid cherry picking this issue to a z-stream branch and instead align it with the 3.7 release since it involves a major change in functionality for FileFields.

#4 Updated by Anonymous 2 months ago

  • Status changed from POST to MODIFIED

#5 Updated by bmbouter 28 days ago

  • Sprint/Milestone set to 3.7.0

#6 Updated by pulpbot 28 days ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF