View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
6011 | Composr | galleries | public | 2024-10-23 20:37 | 2024-11-13 00:32 |
Reporter | PDStig | Assigned To | PDStig | ||
Priority | normal | Severity | trivial | ||
Status | resolved | Resolution | fixed | ||
Product Version | 11.beta4 | ||||
Summary | 6011: Deleting a gallery does not delete the uploads/galleries files | ||||
Description | When deleting a gallery, the files still exist on-disk despite being removed from the database. These should be removed because it creates conflicts if a gallery by the same name is later created. | ||||
Tags | Roadmap: v11 | ||||
Attach Tags | |||||
Attached Files | |||||
Time estimation (hours) | |||||
Sponsorship open | |||||
|
Automated response: Deleting a gallery does not delete the uploads/galleries files This hotfix will ensure media within a deleted gallery also gets deleted as it should (according to our code comments). Additionally, this hotfix defers deleting images and videos to the task queue (when available, and if we have 100 or more items to delete), or to a shutdown function otherwise. |
|
Fixed in Git commit 59d29ebde9 (https://gitlab.com/composr-foundation/composr/commit/59d29ebde9 - link will become active once code pushed to GitLab) |
|
A hotfix (a TAR of files to upload) has been uploaded to this issue. Only apply this hotfix if you absolutely need it and cannot wait until the next release of Composr (releases are more reliable and strictly tested). As of Composr version 11, the recommended way to apply a hotfix is by following the same steps as an upgrade (https://baseurl/upgrader.php, use the hotfix on the step “Transfer across new/updated files”). The upgrader will automatically skip files belonging to addons you do not have installed or that are newer on disk than in the hotfix. Otherwise, you can manually extract and replace these files (do not replace if your on-disk file is newer than the one in the hotfix). Always take backups of your site or at least files you are replacing before applying a hotfix. Not sure how to extract TAR files to your Windows computer? Try 7-zip (http://www.7-zip.org/). |