Page MenuHomePhabricator

Renaming a page in File namespace without a file associated triggers an error
Open, Needs TriagePublic

Description

While looking for a source of T226922 problem I noticed that moving any page in File namespace with no associated file (only a wikitext page) to any name in any wiki fails with error message:

The page could not be moved, for the following reason:
Could not delete the page or image specified. (It may have already been deleted by someone else.)

If there is a reason to block renaming such pages (however I doubt that this should be blocked), the errer message is at least misleading.

Tested on the following pages:

https://commons.wikimedia.org/wiki/File:Nov%C3%A9_Dvory_(Sedlec-Pr%C4%8Dice).jpg
https://pl.wikisource.org/wiki/Plik:Test
https://test2.wikipedia.org/wiki/File:Test30.svg

(trying to rename to another name with the same jpg/svg extension)

Event Timeline

Ankry created this task.Jul 9 2019, 3:06 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 9 2019, 3:06 PM
Ankry renamed this task from Renaming a page in File namespace without a file associated, triggers en error to Renaming a page in File namespace without a file associated triggers an error.Jul 9 2019, 3:09 PM
Wargo added a subscriber: Wargo.Jul 9 2019, 3:15 PM
Restricted Application added projects: Commons, Multimedia. · View Herald TranscriptJul 10 2019, 3:21 PM