Page MenuHomePhabricator

Moving a File: page without a file onto a deleted file is not possible in Commons
Open, Needs TriagePublic

Description

While attempting to handle some "lost" File: namespace page ediths from P8677 list (T173070) I encoutered a problem with merging history of pages in File: namespace: moving a "lost" File: page (with no file associated) onto a recently deleted file generates an error:

The page could not be moved, for the following reasons:

  The title is the same; cannot move a page over itself.
  A page of that name already exists, or the name you have chosen is not valid. Please choose another name.

(The target file was actually deleted at that time.)
The problem is not related to the files listed, as an attempt to move a fresh, recently created file page gives the same result.

Tested wih the following examples (all failed):

File:T173070Ryde Tesco pedestrian walkway.JPG -> File:Ryde Tesco pedestrian walkway.JPG
File:T173070Nové Dvory (Sedlec-Prčice), křižovatka u kapličky, zdola.jpg -> File:Nové Dvory (Sedlec-Prčice), křižovatka u kapličky, zdola.jpg
File:Nové Dvory (Sedlec-Prčice).jpg -> File:Nové Dvory (Sedlec-Prčice), křižovatka u kapličky, zdola.jpg
File:Nové Dvory (Sedlec-Prčice).jpg -> File:Aritaum 201604.jpg

Any hints how to merge wikitext revision of such pages are welcome.

Event Timeline

Ankry created this task.Jun 30 2019, 9:04 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 30 2019, 9:04 AM
Restricted Application added a project: Multimedia. · View Herald TranscriptJun 30 2019, 10:44 AM
Ankry updated the task description. (Show Details)Jun 30 2019, 1:28 PM

You can do this manually, by merging the wikitext by hand and then deleting the prefixed version.

Ankry added a comment.Jul 6 2019, 12:52 PM

You can do this manually, by merging the wikitext by hand and then deleting the prefixed version.

The intention of history merging is to keep the original contributor information, not only the content.

Ankry added a comment.Jul 6 2019, 1:43 PM

As suggested by @Urbanecm I also tried Special:MergePages with a strange result:

Source page:      File:T173070Ryde Tesco pedestrian walkway.JPG
Destination page: File:Ryde Tesco pedestrian walkway.JPG

No revisions can be merged.
Wargo added a subscriber: Wargo.Jul 8 2019, 11:16 AM

You can only merge revisions from "older" page to "newer". "Newer" is based on first revision (I suppose). So, you need... merge some revisions from the "valid" page to the "orphaned" page and then do second merge to move all again to the valid title.

But be careful! Test it first outside production! And wait for another solutions first!