View Issue Details

IDProjectCategoryView StatusLast Update
6011Composrgalleriespublic2024-11-13 00:32
ReporterPDStig Assigned ToPDStig  
PrioritynormalSeveritytrivial 
Status resolvedResolutionfixed 
Product Version11.beta4 
Summary6011: Deleting a gallery does not delete the uploads/galleries files
DescriptionWhen 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.
TagsRoadmap: v11
Attach Tags
Attached Files
Time estimation (hours)
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

admin

2024-11-13 00:32

administrator   ~9577

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.

admin

2024-11-13 00:32

administrator   ~9578

Fixed in Git commit 59d29ebde9 (https://gitlab.com/composr-foundation/composr/commit/59d29ebde9 - link will become active once code pushed to GitLab)

admin

2024-11-13 00:32

administrator   ~9579

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/).

Issue History

Date Modified Username Field Change
2024-10-23 20:37 PDStig New Issue
2024-10-23 20:37 PDStig Status Not Assigned => Assigned
2024-10-23 20:37 PDStig Assigned To => user4172
2024-10-23 20:37 PDStig Tag Attached: Roadmap: v11