Page MenuHomePhabricator

Blacklist overwriting Special: namespace
Open, Needs TriagePublicBUG REPORT

Description

Steps to Reproduce:
Follow https://mediawiki.org/wiki/Special:MyLanguage/Manual:Using_custom_namespaces to Create a Special: Namespace with an id other than -1
Actual Results:
The namespace creates blocking the entire use of Special Pages rendering critical, core functionality unavailable.
Expected Results:
The namespace will not be created (and probably error) to avoid breaking functionality
Notes:
Filed as a result of https://phabricator.miraheze.org/T5253

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Perhaps ideally this should throw an exception (but where exactly? Setup.php? Seems weird to check for this super unususl case in setup.php).

Honestly though, I feel this is a case of do silly things get silly results.

Perhaps ideally this should throw an exception (but where exactly? Setup.php? Seems weird to check for this super unususl case in setup.php).

Based on my conversation with @Reedy, A patch to setup.php may be trivial as there is no current validation. Although, the issue of all the other languages was brought up.

Honestly though, I feel this is a case of do silly things get silly results.

We are the first to report in a long time. It’s an edge case.

The namespace will not be created (and probably error) to avoid breaking functionality

Of course the setup.php wouldnt solve that problem. It would just change from special being broken to the entire wiki being broken.

The namespace will not be created (and probably error) to avoid breaking functionality

Of course the setup.php wouldnt solve that problem. It would just change from special being broken to the entire wiki being broken.

That’s out then. I was looking for a way to prevent a namespace called “Special” or the localised version being created to avoid damage to core functionality.

While you are using some sort of custom interface to let users create namespaces, right? Personally, I think it makes more sense to verify the sanity of the configuration on that layer.

While you are using some sort of custom interface to let users create namespaces, right?

Extension:ManageWiki

Personally, I think it makes more sense to verify the sanity of the configuration on that layer.

We're looking at that but someone mentioned the possibility of having mediawiki core block it as well.