Last modified: 2012-11-29 13:13:55 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 T40355, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38355 - wbgetitems throws error if result contains an items twice
wbgetitems throws error if result contains an items twice
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Unprioritized major (vote)
: ---
Assigned To: Wikidata bugs
http://wikidata-test-repo.wikimedia.d...
:
Depends on:
Blocks: 38356
  Show dependency treegraph
 
Reported: 2012-07-12 08:16 UTC by merl
Modified: 2012-11-29 13:13 UTC (History)
3 users (show)

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


Attachments

Description merl 2012-07-12 08:16:06 UTC
enwiki:Dice and simplewiki:Dice belong to the same item 96406

If you send a request to wbgetitems requesting both pages at the same time using 
http://wikidata-test-repo.wikimedia.de/w/api.php?action=wbgetitems&sites=enwiki|simplewiki&titles=Dice&language=en and error is returned:

<api>
  <error code="internal_api_error_MWException" info="Exception Caught: Internal error in ApiResult::setElement: Attempting to add element id=96406, existing value is 96406" xml:space="preserve">

#0 /var/www/wikidata-test-repo.wikimedia.de/w/includes/api/ApiBase.php(1405): wfDebugDieBacktrace('Internal error ...')
#1 /var/www/wikidata-test-repo.wikimedia.de/w/includes/api/ApiResult.php(157): ApiBase::dieDebug('ApiResult::setE...', 'Attempting to a...')
#2 /var/www/wikidata-test-repo.wikimedia.de/w/includes/api/ApiResult.php(290): ApiResult::setElement(Array, 'id', 96406, false)
#3 /var/www/wikidata-test-repo.wikimedia.de/w/extensions/Wikibase/repo/includes/api/ApiGetItems.php(100): ApiResult->addValue(Array, 'id', 96406)
#4 /var/www/wikidata-test-repo.wikimedia.de/w/includes/api/ApiMain.php(714): Wikibase\ApiGetItems->execute()
#5 /var/www/wikidata-test-repo.wikimedia.de/w/includes/api/ApiMain.php(363): ApiMain->executeAction()
#6 /var/www/wikidata-test-repo.wikimedia.de/w/includes/api/ApiMain.php(347): ApiMain->executeActionWithErrorHandling()
#7 /var/www/wikidata-test-repo.wikimedia.de/w/api.php(113): ApiMain->execute()
#8 {main}

</error>
</api>
Comment 1 jeblad 2012-07-12 11:25:06 UTC
https://gerrit.wikimedia.org/r/15528

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


Navigation
Links