Page MenuHomePhabricator

list=allpages does not list page "Category:Template:lowercase"
Closed, ResolvedPublic

Description

The page [[testwiki:Category:Template:lowercase]] is not list in an API-Result, when searching for the prefix "Template:l" (api query on the page).

The problem is, that the prefix is normalized to "Template:L" like a title and so does not find the page.


Version: 1.22.0
Severity: enhancement
URL: http://test.wikipedia.org/wiki/Category:Template:lowercase

Details

Reference
bz25702

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:18 PM
bzimport set Reference to bz25702.

Just for reference the associated api queries are:
http://test.wikipedia.org/w/api.php?action=query&list=allpages&apnamespace=14&apprefix=Template:l (doesn't work. Compare with
http://test.wikipedia.org/w/api.php?action=query&list=allpages&apnamespace=14&apprefix=Template: which gives expected behaviour).

It seems to be caused by ApiQueryBase::titlePartToKey using Title::newFromText which assumes that any namespace prefix is an actual namespace prefix.

(In reply to comment #2)

bug 29166 is related

Bug 29166 doesn't exist :P

Bryan.TongMinh wrote:

Can't reproduce this locally. Does any know if some config setting effects this bug?

Bryan.TongMinh wrote:

Should be fixed by Iaa5a71ec.

Bryan: Do you plan to update your patch in Gerrit to incorporate the change proposals by Yurik?

Bryan: Do you plan to update your patch in Gerrit to incorporate the change
proposals by Yurik?

Change 40337 had a related patch set uploaded by Matmarex:
(bug 25702) Fix capitalization in ApiQueryBase::titlePartToKey()

https://gerrit.wikimedia.org/r/40337

Change 40337 merged by jenkins-bot:
Fix capitalization in ApiQueryBase::titlePartToKey()

https://gerrit.wikimedia.org/r/40337

Patch merged! The change should be deployed to WMF wikis with 1.23wmf9, see https://www.mediawiki.org/wiki/MediaWiki_1.23/Roadmap for the schedule.