fixing dataroot temp file cleanup

Bug #1886104 reported by Lisa Seeto
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Low
Lisa Seeto

Bug Description

In the site's dataroot/temp directory there are files that are meant to be temporary that are not being cleaned up.

In artefact/file/downloadfolder.php file there is the zip_clean_temp_dir() function that is meant to clean up old .zip files in the temp directory. This will need to be amended so that it works to clear old files.

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/11055

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/11055
Committed: https://git.mahara.org/mahara/mahara/commit/3bfba52ba4f1b875db1b8d8516d4864dda19d6ec
Submitter: Cecilia Vela Gurovic (<email address hidden>)
Branch: master

commit 3bfba52ba4f1b875db1b8d8516d4864dda19d6ec
Author: Lisa Seeto <email address hidden>
Date: Fri Jul 3 10:28:15 2020 +1200

Bug 1886104: fixing dataroot temp file cleanup

- add another regex pattern
- also get rid of files that the logged in user did not create
- added in func to replace special chars

Change-Id: I7490146bb76ed5dea82a168ac7893b8d7424e00f
Signed-off-by: Lisa Seeto <email address hidden>

Changed in mahara:
status: In Progress → Fix Committed
importance: Undecided → Low
milestone: none → 20.10.0
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.