Page MenuHomePhabricator

Still getting wikidata xml api exceptions
Closed, ResolvedPublic

Description

we are still getting quite a bit of exceptions for xml format in the api.

I thought there was already a bug for this but can't find it.

It might make sense to backport and deploy https://gerrit.wikimedia.org/r/#/c/102466/ (which also requires https://gerrit.wikimedia.org/r/#/c/98099/ cherry picked)

/w/api.php?action=wbsetreference&format=xml Exception from line 1963 of /usr/local/apache/common-local/php-1.23wmf9/includes/api/ApiBase.php: Internal error in ApiFormatXml::recXmlPrint: (P248, ...) has integer keys without _element value. Use ApiResult::setIndexedTagName().
#0 /usr/local/apache/common-local/php-1.23wmf9/includes/api/ApiFormatXml.php(164): ApiBase::dieDebug('ApiFormatXml::r...', '(P248, ...) has...')
#1 /usr/local/apache/common-local/php-1.23wmf9/includes/api/ApiFormatXml.php(179): ApiFormatXml::recXmlPrint('P248', Array, NULL)
#2 /usr/local/apache/common-local/php-1.23wmf9/includes/api/ApiFormatXml.php(179): ApiFormatXml::recXmlPrint('snaks', Array, NULL)
#3 /usr/local/apache/common-local/php-1.23wmf9/includes/api/ApiFormatXml.php(179): ApiFormatXml::recXmlPrint('reference', Array, NULL)
#4 /usr/local/apache/common-local/php-1.23wmf9/includes/api/ApiFormatXml.php(73): ApiFormatXml::recXmlPrint('api', Array, NULL)
#5 /usr/local/apache/common-local/php-1.23wmf9/includes/api/ApiMain.php(1011): ApiFormatXml->execute()
#6 /usr/local/apache/common-local/php-1.23wmf9/includes/api/ApiMain.php(873): ApiMain->printResult(false)
#7 /usr/local/apache/common-local/php-1.23wmf9/includes/api/ApiMain.php(387): ApiMain->executeAction()
#8 /usr/local/apache/common-local/php-1.23wmf9/includes/api/ApiMain.php(358): ApiMain->executeActionWithErrorHandling()
#9 /usr/local/apache/common-local/php-1.23wmf9/api.php(76): ApiMain->execute()
#10 /usr/local/apache/common-local/w/api.php(3): require('/usr/local/apac...')


Version: master
Severity: normal

Details

Reference
bz59876

Event Timeline

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

Change 106565 had a related patch set uploaded by Aude:
Make ResultBuilder's "indexed mode" work consistently.

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

Change 106565 merged by jenkins-bot:
Make ResultBuilder's "indexed mode" work consistently.

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

Change 107375 had a related patch set uploaded by Aude:
Update Wikibase, fix for xml api exceptions

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

Change 107375 merged by Reedy:
Update Wikibase, fix for xml api exceptions

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