Page MenuHomePhabricator

Query for URL of image (prop=imageinfo&iiprop=url) fails with "Uri::setUri: $uri is not of a valid type."
Closed, ResolvedPublic

Description

http://commons.wikimedia.org/w/api.php?action=query&cllimit=500&clprop=hidden&format=json&iilimit=500&iiprop=url&iiurlheight=120&iiurlwidth=120&prop=imageinfo&titles=File%3ALasst%2C%20ihr%20buntbem%C3%BCtzen%20Scharen%2C....ogg

gives both, POSTed and GETed:

{"servedby":"srv300","error":{"code":"internal_api_error_MWException","info":"Exception Caught: Uri::setUri: $uri is not of a valid type.","*":""}}

File is: https://commons.wikimedia.org/wiki/File:Lasst,_ihr_buntbem%C3%BCtzen_Scharen,....ogg

Expected behaviour:

  • No error
  • Return just raw file URL (can't scale audio)

Version: unspecified
Severity: normal

Details

Reference
bz39670

Event Timeline

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

Line 121 of Uri.php has wrong quotes (hence getting $uri back in the error messages). bug 39672 filed for that...

This is probably "fixed" now that Uri.php has been reverted, right?

Yes, thank you. The result looks good and the tool that makes use of it works as expected.