Page MenuHomePhabricator

deleteArchivedFiles.php deletes db records, but not files
Closed, ResolvedPublic

Description

Author: m.prestifilippo

Description:
If you run deleteArchivedFiles.php without permission to delete files in the image directory, the script will delete the records in the db, but will not delete the files.

I looked at the code, and it's an easy fix by adding an if statement around the unlink method.


Version: unspecified
Severity: normal

Details

Reference
bz26848

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:18 PM
bzimport set Reference to bz26848.
bzimport added a subscriber: Unknown Object (MLST).