Last modified: 2014-10-09 13:45:00 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 T73877, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 71877 - internal_api_error_MWException in wbsearchentities when "continue" parameter is not an integer
internal_api_error_MWException in wbsearchentities when "continue" parameter ...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-09 12:07 UTC by tobias.gritschacher
Modified: 2014-10-09 13:45 UTC (History)
1 user (show)

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


Attachments

Description tobias.gritschacher 2014-10-09 12:07:07 UTC
When doing e.g. the following requests:

action=wbsearchentities&format=json&search=Italy&language=en&type=item&limit=10&continue=

or

action=wbsearchentities&format=json&search=Italy&language=en&type=item&limit=10&continue=abc

the API returns:

{"error":{"code":"internal_api_error_MWException","info":"Exception Caught: Internal error in ApiResult::setElement: Bad parameter","*":"\n\n#0 C:\\xampp\\htdocs\\mediawiki\\includes\\api\\ApiResult.php(185): ApiBase::dieDebug('ApiResult::setE...', 'Bad parameter')\n#1 C:\\xampp\\htdocs\\mediawiki\\includes\\api\\ApiResult.php(374): ApiResult::setElement(Array, 'search', NULL, 0)\n#2 C:\\xampp\\htdocs\\mediawiki\\extensions\\Wikibase\\repo\\includes\\api\\SearchEntities.php(310): ApiResult->addValue(NULL, 'search', NULL)\n#3 C:\\xampp\\htdocs\\mediawiki\\includes\\api\\ApiMain.php(932): Wikibase\\Api\\SearchEntities->execute()\n#4 C:\\xampp\\htdocs\\mediawiki\\includes\\api\\ApiMain.php(364): ApiMain->executeAction()\n#5 C:\\xampp\\htdocs\\mediawiki\\includes\\api\\ApiMain.php(335): ApiMain->executeActionWithErrorHandling()\n#6 C:\\xampp\\htdocs\\mediawiki\\api.php(85): ApiMain->execute()\n#7 {main}\n\n"}}

Specifying a PARAM_TYPE and making it an optional parameter should fix the problem.
Comment 1 Gerrit Notification Bot 2014-10-09 12:11:28 UTC
Change 165711 had a related patch set uploaded by Tobias Gritschacher:
Specify PARAM_TYPE and PARAM_REQUIRED for "continue" in wbsearchentities

https://gerrit.wikimedia.org/r/165711
Comment 2 Gerrit Notification Bot 2014-10-09 13:39:08 UTC
Change 165711 merged by jenkins-bot:
Specify PARAM_TYPE and PARAM_REQUIRED for "continue" in wbsearchentities

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

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


Navigation
Links