Page MenuHomePhabricator

internal_api_error_MWException on &iiprop=metadata with ogg files
Closed, ResolvedPublic

Description

Author: herd

Description:
Not rigorously tested, but seems to occur only with OGG files.

error
code="internal_api_error_MWException"
info="Exception Caught: Internal error in ApiFormatXml::recXmlPrint: (streams, ...) has integer keys without _element value. Use ApiResult::setIndexedTagName()."

<Bryan> it is because the api uses unserialize(img_metadata) directly
<Bryan> which won't work when you are having lists in combination with the xml printer
<Bryan> you'll have to use setIndexedTagName or something like that


Version: 1.13.x
Severity: normal
URL: http://en.wikipedia.org/w/api.php?action=query&prop=imageinfo&iiprop=metadata&iilimit=1&titles=Image:Bombers_of_WW1.ogg

Details

Reference
bz13836

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:11 PM
bzimport set Reference to bz13836.

I'll be on this in the weekend.

Fixed in r33910, there was a &-sign missing somewhere.