Last modified: 2012-04-16 09:16:10 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T28848, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26848 - deleteArchivedFiles.php deletes db records, but not files
deleteArchivedFiles.php deletes db records, but not files
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-01-21 16:53 UTC by Matt
Modified: 2012-04-16 09:16 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Matt 2011-01-21 16:53:26 UTC
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.
Comment 1 Chad H. 2011-01-21 17:42:29 UTC
Fixed in r80693.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links