Last modified: 2014-08-16 10:46:06 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T67752, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 65752 - ApiOpensearch unable to search for pages in namespace starting with lower case letter
ApiOpensearch unable to search for pages in namespace starting with lower cas...
Status: PATCH_TO_REVIEW
Product: MediaWiki
Classification: Unclassified
Search (Other open bugs)
1.24rc
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Niklas Laxström
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-25 22:02 UTC by Niklas Laxström
Modified: 2014-08-16 10:46 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Niklas Laxström 2014-05-25 22:02:58 UTC
How to reproduce:
1) Add settings:
$wgCapitalLinkOverrides[NS_FOO] = false; // NS_FOO 1200
$wgCapitalLinkOverrides[NS_FOO_TALK] = false;

2) Create Foo:bar

3) Go to /w/api.php?action=opensearch&format=jsonfm&namespace=1200&suggest=&search=bar

Expected: To get suggestion for Foo:bar
Observed: No suggestions
Reason: There is some code in PrefixSearch::search that normalizes the search keyword as if it were in NS_MAIN.
Comment 1 Brad Jorsch 2014-05-27 18:07:42 UTC
Not an API bug, the API is just returning what PrefixSearch::search gives it.
Comment 2 Gerrit Notification Bot 2014-06-02 18:43:32 UTC
Change 136796 had a related patch set uploaded by Nikerabbit:
PrefixSearch (ApiOpenSearch) now supports searching in multiple namespaces

https://gerrit.wikimedia.org/r/136796
Comment 3 Gerrit Notification Bot 2014-06-20 20:30:25 UTC
Change 136796 merged by Chad:
PrefixSearch (ApiOpenSearch) now supports searching in multiple namespaces

https://gerrit.wikimedia.org/r/136796
Comment 4 Gerrit Notification Bot 2014-06-24 08:23:54 UTC
Change 141660 had a related patch set uploaded by Nikerabbit:
PrefixSearch (ApiOpenSearch) now supports searching in multiple namespaces

https://gerrit.wikimedia.org/r/141660
Comment 5 Andre Klapper 2014-08-16 10:46:06 UTC
Patch awaiting review for two months...

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links