Page MenuHomePhabricator

Special:PrefixIndex does inconsistent handling of params
Closed, ResolvedPublic

Description

Special:PrefixIndex/File: returns different results from Special:PrefixIndex&prefix=&namespace=6


Version: 1.18.x
Severity: minor

Details

Reference
bz26625

Event Timeline

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

Looks like a regression since 1.16.

In deployed code,

http://www.mediawiki.org/wiki/Special:PrefixIndex/File:

and

http://www.mediawiki.org/wiki/Special:PrefixIndex?prefix=&namespace=6

appear identical except the first says "All pages with prefix" and the second says "All pages (File namespace)". Both return the same results, and have the same "next" link: http://www.mediawiki.org/w/index.php?title=Special:PrefixIndex&from=Hack-A-Ton-DC-t-shirt.png&namespace=6

In my local trunk copy, I can see that the first form works as expected but the second form lists no results -- this is probably a regression from changes to make Special:Prefixindex default to not showing results when no prefix has been passed in.

If a namespace is given, this ought to count as having a prefix and thus being ready to go.

(In reply to comment #2)

Looks like a regression since 1.16.

  • this is probably a regression from changes to

make Special:Prefixindex default to not showing results when no prefix has been
passed in.

If a namespace is given, this ought to count as having a prefix and thus being
ready to go.

Indeed, passing a 'space' or '+' as prefix does return everything like it used to.
http://translatewiki.net/w/i.php?title=Special%3APrefixIndex&prefix=+&namespace=6
(I guess it's trimmed after the validation part)

Looks like this was another regression in r75314 (bug 23923); pages weren't listed if namespace was set but no prefix given.

Fixed in r79851