Page MenuHomePhabricator

action=opensearch converts "Project:About", but not "Wikipedia:About"
Closed, DeclinedPublic

Description

$ curl "http://en.wikipedia.org/w/api.php?format=json&action=opensearch&search=Template:Wikipedia:About&suggest="
["Template:Wikipedia:About",[]]

$ curl "http://en.wikipedia.org/w/api.php?format=json&action=opensearch&search=Template:Project:About&suggest="
["Template:Project:About",["Wikipedia:About","Wikipedia:ABOUTSELF","Wikipedia:About Fair Use","Wikipedia:About the Sandbox","Wikipedia:About essay searching","Wikipedia:ABOUTEVERYTHING","Wikipedia:About DramaQueenipedia","Wikipedia:About translating German Wikipedia","Wikipedia:About page view statistics","Wikipedia:About template mania"]]

Project:About returns seemingly correct results, but Wikipedia:About does not.

It's a bit weird that it manages to convert Project even though it's not the namespace (Template is), but misses the correct results.


Version: wmf-deployment
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=22773
https://bugzilla.wikimedia.org/show_bug.cgi?id=40210

Details

Reference
bz52610

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:57 AM
bzimport set Reference to bz52610.
bzimport added a subscriber: Unknown Object (MLST).

Other namespace problems with opensearch: bug 22773, bug 40210

Is this actually a bug with lsearchd or is it a more general problem with the opensearch implementation?

(To test, try using opensearch on a wiki with the new Cirrus search, such as mw.org or enwikisource)

If it's a bug with lsearchd only I'm inclined to WONTFIX as we're hitting the end of life for that. If Cirrus has the problem too then we'll need to fix it wherever the problem is.

Apparently, lsearchd. The reported symptoms are still reproducible (on English Wikipedia). However, English Wikisource seems fine:

$ curl "http://en.wikisource.org/w/api.php?format=json&action=opensearch&search=Template:Wikisource:About&suggest="
["Template:Wikisource:About",[]]%

$ curl "http://en.wikisource.org/w/api.php?format=json&action=opensearch&search=Template:Project:About&suggest="
["Template:Project:About",[]]%

If it had the same problem, I would expect it to suggest Wikisource:About (which does exist), as it suggested Wikipedia:About.

Marking WONTFIX then, as lsearchd has been end of lifed and this seems fixed by Cirrus.