Page MenuHomePhabricator

Special:RequestAccount form post results in BadTitle page (ConfirmAccount Extension)
Closed, ResolvedPublic

Description

Author: slp.45325678

Description:
With the ConfirmAccount extension installed on the server, after posting a Special:RequestAccount form, users get a BadTitle page, making them unable to actually request an account.

The bug occurs with french localized MediaWiki ($wgLanguageCode = "fr") but not in english ($wgLanguageCode = "fr").
I further figured out that it occurs only when the localized name for the special namespace has special characters, for instance:

  • "Spécial" with $wgLanguageCode = "fr"
  • "Служебная" with $wgLanguageCode = "ru"

It works with $wgLanguageCode = "de" ("Spezial") and of course with $wgLanguageCode = "de".

As a workaround I have set the french name of the special namespace to "Special" instead of "Spécial" ($namespaceName[NS_SPECIAL] = 'Special') in MessagesFr.php


Version: unspecified
Severity: normal

Details

Reference
bz18053

Event Timeline

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

slp.45325678 wrote:

Update: posting the form from the "Special:ConfirmAccounts/Invité" page, does result in a badtitle also.
Renaming the account type from "Invité" to "Invite" (setting $wgAccountRequestTypes accordingly in LocalSettings.php) does the trick: the bureaucrat is able to post the form from "Special:ConfirmAccounts/Invite" without any trouble.

Is this working after r48640

(In reply to comment #2)

Is this working after r48640

Didn't mean to close yet. Does this work OK?

slp.45325678 wrote:

Thanks, posting the Special:RequestAccount form works now.
But posting the Special:ConfirmAccount/group&acrid=n form doesn't. Same symptom: badtitle page.

(In reply to comment #4)

Thanks, posting the Special:RequestAccount form works now.
But posting the Special:ConfirmAccount/group&acrid=n form doesn't. Same
symptom: badtitle page.

OK, try r48719 (typo fix)

slp.45325678 wrote:

Doesn't work neither with r48719.
One of my buggy URL is "w/index.php5?title=Sp%C3%A9cial:ConfirmerCompte/Invit%C3%A9&acrid=8", where "%C3%A9" is the percent encoding for "é".

More related tweaks in r48772

slp.45325678 wrote:

(In reply to comment #7)

More related tweaks in r48772

That's the good one.
Thank you for your precious involvement in fixing that bug.
I am changing resolution to FIXED.