Page MenuHomePhabricator

can't pass username with space to api.php (and prolly other chars that don't work)
Closed, ResolvedPublic

Description

There are multiple users whose names start with '''Adrian '''. Searching for Adrian_, Adrian+, or Adrian%20 produces no results.
compare:
http://en.wikipedia.org/w/api.php?action=query&list=allusers&aulimit=1&auprop=groups|editcount&auprefix=Adrian
http://en.wikipedia.org/w/api.php?action=query&list=allusers&aulimit=1&auprop=groups|editcount&auprefix=Adrian%20
The result of the second query should be the query-continue value returned from the first. (at least at the moment. not sure if anything has precedence over a space)


Version: 1.11.x
Severity: normal
URL: http://en.wikipedia.org/w/api.php?action=query&list=allusers&aulimit=1&auprop=groups|editcount&auprefix=Adrian%20

Details

Reference
bz10854

Event Timeline

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

robchur wrote:

This specific case would have been fixed in r24870.

robchur wrote:

"This specific case" is misleading; the above should have read:

Username normalisation for "list=allusers" was fixed in r24870. There might be other examples of poor username handling throughout the API.

(In reply to comment #2)

Username normalisation for "list=allusers" was fixed in r24870. There might be
other examples of poor username handling throughout the API.

If that is the case, those issues should be filed separately. Closing as FIXED, as this particular issue was fixed in r24870.