Page MenuHomePhabricator

Provide a more explanatory message on "red" Data namespace pages without .tab or .map extension
Open, Needs TriagePublic

Description

At the moment if you accidentally forget to specify the .tab or .map extension for a page and visit it in order to then create, you see a message saying:

There is currently no text in this page. You can search for this page title in other pages, or search the related logs, but you do not have permission to create this page.

https://commons.wikimedia.org/wiki/Data:Example?uselang=en

Though there's no edit button, being persistent enough you could specify ?action=edit manually and see another message:

You do not have permission to create this page, for the following reason:
You are not allowed to execute the action you have requested.

https://commons.wikimedia.org/wiki/Data:Example?action=edit&uselang=en

While doubtlessly both messages are correct, I am not allowed to create a Data namespace page without an extension explicitly specified, none of them actually writes this very reason. It is even more confusing because usually you see an error message like this when you have insufficient rights (though in that case there's a usergroup needed is mentioned.

This being explained I believe the solution is obvious: there must be the exact reason (file extension missing) specified in those messages.

Event Timeline

Note that the action=edit part of this now works, and shows a reasonable error message. The view part remains to be fixed (and I don't plan to work on fixing it).

The editor part does work, though I would still prefer a message that explains what those json configured thing actually expects. But I have stumpled upon a related bug, when I now opened the link to edit from my phone, mobile frontend version loaded. It shows an erroneous message saying that the editor will now load. Upon clicking the link there the second page opens which does have the error message.

Screenshot_20231119_033106_Firefox.png (624×1 px, 93 KB)

Screenshot_20231119_033141_Firefox.png (687×1 px, 162 KB)