Page MenuHomePhabricator

"Error undeleting file: A non-identical file already exists at "mwstore://local-swift-eqiad/local-public/..." while restoring a file on Commons
Open, Needs TriagePublic

Description

While trying to split up the history of File:قلعه_مظفرآباد.jpg on Commons, I got the error "Error undeleting file: A non-identical file already exists at "mwstore://local-swift-eqiad/local-public/6/67/قلعه_مظفرآباد.jpg"." that prevented me from restoring the file.
Steps to reproduce:

  1. Delete File:قلعه مظفرآباد.jpg (from here).
  2. Restore the different version (07:36, 28 April 2018) and the relevant revision (this) from here and rename it (I moved it to File:قلعه مظفرآباد 2018-04-27.jpg).
  3. Try to restore the original files and revisions of File:قلعه مظفرآباد.jpg (again, from here).

The error shouldn't be there. History splitting is a standard process as explained here, and it's normally possible to perform it (see File:عمارت شتر گلو در ماهان ( خانه خاندان رضوی نعمت اللهی).JPG, for instance; it was a rather more complex case).
Interestingly, when I reverted the move (moved back File:قلعه مظفرآباد 2018-04-27.jpg to File:قلعه مظفرآباد.jpg) and tried to restore the deleted files and revisions of File:قلعه مظفرآباد.jpg, it worked.