Page MenuHomePhabricator

Wikibase: Fix "Internal error in ApiFormatXml::recXmlPrint: (sitelinks, ...) has integer keys without _element value."
Closed, ResolvedPublic

Description

http://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q42&sitefilter=viwiki

<error code="internal_api_error_MWException" info="Exception Caught: Internal error in ApiFormatXml::recXmlPrint: (sitelinks, ...) has integer keys without _element value. Use ApiResult::setIndexedTagName()." xml:space="preserve" />

/usr/local/apache/common-local/php-1.24wmf7/includes/api/ApiFormatXml.php
/usr/local/apache/common-local/php-1.24wmf7/includes/api/ApiMain.php
/usr/local/apache/common-local/php-1.24wmf7/api.php


Version: unspecified
Severity: major

Details

Reference
bz66181

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:16 AM
bzimport set Reference to bz66181.
bzimport added a subscriber: Unknown Object (MLST).

I checked https://www.wikidata.org/wiki/Special:EntityData/Q42.json and can't see a problem there.

Note that it doesn't fail without the sitefilter=... option. I had a quick look at the code and couldn't find an obvious problem other than the option missing any test.

Change 137557 had a related patch set uploaded by Thiemo Mättig (WMDE):
Fix wbgetentities sitefilter

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

Change 137557 merged by jenkins-bot:
Fix wbgetentities with sitefilter=... option

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