Last modified: 2014-05-05 06:53:13 UTC
If you run the undelete.php script for a File: article, it prints success but actually doesn't undelete the article. $ php undelete.php "File:Example.jpg" Undeleting File:Example.jpg...done However, File:Example.jpg still does not exist. Undeleting using the GUI ("Undelete" menu item) works fine.
Even using the Wikisysop user doesn't undelete the page: $ php undelete.php --user Wikisysop "File:Example.jpg"
I figured out the problem. "php" should be "sudo php": the script didn't have permission to restore the file. So this bug is really that undelete.php has poor error messaging. I will change the title.
undelete.php should display an error message when: - It fails to restore a real article (that has been previously deleted), say, due to permission problems - It is instructed to restore an article that does not exist
Change 131431 had a related patch set uploaded by Withoutaname: Introduce error handling for undelete.php https://gerrit.wikimedia.org/r/131431