Last modified: 2011-03-13 18:05:28 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 12777 - Undeletion of missing files is not handled correctly
Undeletion of missing files is not handled correctly
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
All All
: Lowest normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2008-01-24 17:13 UTC by Huji
Modified: 2011-03-13 18:05 UTC (History)
1 user (show)

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


Description Huji 2008-01-24 17:13:23 UTC
Upload a file to the wiki, then delete it. Now remove the backup version of the deleted file from image/deleted/... and then try to restore the deleted file.

You will get something like:

  Image:Test.png has been restored
  Consult the deletion log for a record of recent deletions and restorations.
  Error undeleting file: Could not find file "deleted/0/g/m/0gmrfwcz98nttgzo0f15m7t2kc8wvuk.png". 

Also, in the deletion log, an entry is added:
  17:15, 24 January 2008 Huji (Talk | contribs | block) restored "Image:Test.png" ‎ (1 revision restored)

Both of these are undesirable. Neither should a "has been restored" be shown, nor should an entry get added to the deletion log.
Comment 1 Aaron Schulz 2008-09-16 11:56:20 UTC
The page text and files are not the same. If the text is restored, that still warrants an entry.

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