Page MenuHomePhabricator

giving spaces in a namespace config confuses things
Closed, DeclinedPublic

Description

Found this while testing r97296. Since I wrote the exact steps to reproduce this in IRC, here are the logs:

<hexmode> installed and created default LocalSettings.php
<hexmode> User:Test has no content [15:59]
<hexmode> Log in as Test
<hexmode> create User:Test with content "blah"
<hexmode> Change gender to male [16:00]
<hexmode> added $wgExtraGenderNamespaces line to LocalSettings.php [16:01]
<hexmode> Visit User:Test [16:02]
<hexmode> redirects to The_man:Test
<hexmode> no content
<hexmode> Remove line from LocalSettings.php [16:03]
<hexmode> Return to User:Test
<hexmode> shows content "blah"

Note that the exact line I put in LocalSettings.php was:

$wgExtraGenderNamespaces[NS_USER] = array( 'male' => 'The man', 'female' => 'The lady' );

Niklas told me this was a mis-communication and that I should have used 'The_man' and 'The_lady' instead.


Version: 1.18.x
Severity: normal

Details

Reference
bz31009

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:52 PM
bzimport set Reference to bz31009.
bzimport added a subscriber: Unknown Object (MLST).

How is this related to watchlist?

p.selitskas wrote:

Shouldn't this be resolved as WONTFIX (not a bug)? It's just a mistake in configuration after all.

(In reply to comment #3)

Shouldn't this be resolved as WONTFIX (not a bug)? It's just a mistake in
configuration after all.

Indeed, the underscore requirement is quite a widespread one in MediaWiki.