Last modified: 2014-11-12 19:35:56 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 T75321, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 73321 - Exception Caught: Internal error in ApiResult::setElement: Attempting to add element suggestion=foo, existing value is foo
Exception Caught: Internal error in ApiResult::setElement: Attempting to add ...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-12 19:08 UTC by Monte Hurd
Modified: 2014-11-12 19:35 UTC (History)
5 users (show)

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


Attachments

Description Monte Hurd 2014-11-12 19:08:14 UTC
When searching for "fooo" with the following query, the api reports an error.

https://en.m.wikipedia.org/w/api.php?action=query&format=jsonfm&generator=search&gsrinfo=totalhits%7Csuggestion&gsrlimit=24&gsrnamespace=0&gsroffset=0&gsrprop=redirecttitle&gsrsearch=fooo&gsrwhat=text&list=search&pilimit=24&piprop=thumbnail&pithumbsize=144&ppprop=wikibase_item&prop=pageprops%7Cpageimages&srinfo=suggestion&srlimit=24&srnamespace=0&sroffset=0&srprop=&srsearch=foood&srwhat=text

The error:
Exception Caught: Internal error in ApiResult::setElement: Attempting to add element suggestion=foo, existing value is foo

Context for the query parameters above: apps would like to have option for in-article search. The parameters above are intended to, in a single query, return the results and thumbnail urls and wikibase id's and list results in proper order.
Comment 2 Gerrit Notification Bot 2014-11-12 19:22:50 UTC
Change 172794 had a related patch set uploaded by Anomie:
API: Don't add searchinfo or interwiki info from generator=search

https://gerrit.wikimedia.org/r/172794
Comment 3 Brad Jorsch 2014-11-12 19:24:09 UTC
As a workaround, pass an empty value for 'gsrinfo'.
Comment 4 Gerrit Notification Bot 2014-11-12 19:29:34 UTC
Change 172794 merged by jenkins-bot:
API: Don't add searchinfo or interwiki info from generator=search

https://gerrit.wikimedia.org/r/172794
Comment 5 Brad Jorsch 2014-11-12 19:35:56 UTC
The fix should be deployed to WMF wikis with 1.25wmf9, see https://www.mediawiki.org/wiki/MediaWiki_1.25/Roadmap for the schedule.

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


Navigation
Links