Page MenuHomePhabricator

Title blacklist should return friendly error message and allow user to report false positives
Open, NormalPublic

Description

Creating an account that matches a blacklist rule should return a more friendly, specific error message that specifies both the rule and the reason why the rule exists. Ideally it would also contain a simple false positive reporting system, similar to Upload Wizard.

We should likely make this change as part of shifting to a global blacklisting system (see bug 36939).


Version: unspecified
Severity: major
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=36939

Details

Reference
bz36940

Event Timeline

bzimport raised the priority of this task from to Normal.Nov 22 2014, 12:21 AM
bzimport added a project: TitleBlacklist.
bzimport set Reference to bz36940.
bzimport added a subscriber: Unknown Object (MLST).

Adding dependency.
The requirements set in comment 0 are quite high, but I hope it wouldn't be too hard to:

  • always provide a system message which mentions the title blacklist and its relevant rule rather than give a generic "permission error" (see bug 42316 comment 4) or just silently fail;
  • link the sources for the blacklist defined in $wgTitleBlacklistSources, if of type local page or URL, so that the user knows where to check.

For Wikimedia projects and most MediaWiki users, this would at least allow to go to a wiki page whose talk can be used for reports etc.

The currently handled cases are as follows:

'titleblacklist-forbidden-edit'   => 'The title "$2" has been banned from creation.

It matches the following blacklist entry: <code>$1</code>',

'titleblacklist-forbidden-move'   => '"$2" cannot be moved to "$3", because the title "$3" has been banned from creation.

It matches the following blacklist entry: <code>$1</code>',

'titleblacklist-forbidden-upload' => 'The file name "$2" has been banned from creation.

It matches the following blacklist entry: <code>$1</code>',

'titleblacklist-forbidden-new-account' => 'The user name "$2" has been banned from creation.

It matches the following blacklist entry: <code>$1</code>',

(In reply to comment #1)

  • always provide a system message which mentions the title blacklist and its

relevant rule rather than give a generic "permission error" (see bug 42316
comment 4) or just silently fail;

It's eswiki community's fault to set an unclear errormsg <autoconfirmed|errmsg=Debes estar registrado para crear esta
página.>. See this default message: https://es.wikipedia.org/w/index.php?title=Http://www.google.com&action=edit&uselang=en

(In reply to comment #2)

It's eswiki community's fault to set an unclear errormsg
<autoconfirmed|errmsg=Debes estar registrado para crear esta
página.>. See this default message:
https://es.wikipedia.org/w/index.php?title=Http://www.google.com&action=edit&uselang=en

I know what the default message is, I mean that the errmsg should be wrapped in a titleblacklist error message which explains where it comes from.