Last modified: 2012-08-30 16:27:39 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 T41670, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 39670 - Query for URL of image (prop=imageinfo&iiprop=url) fails with "Uri::setUri: $uri is not of a valid type."
Query for URL of image (prop=imageinfo&iiprop=url) fails with "Uri::setUri: $...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 39672
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-26 19:33 UTC by Rainer Rillke @commons.wikimedia
Modified: 2012-08-30 16:27 UTC (History)
4 users (show)

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


Attachments

Description Rainer Rillke @commons.wikimedia 2012-08-26 19:33:35 UTC
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)
Comment 1 Sam Reed (reedy) 2012-08-26 20:58:52 UTC
Line 121 of Uri.php has wrong quotes (hence getting $uri back in the error messages). bug 39672 filed for that...
Comment 2 Roan Kattouw 2012-08-29 23:11:50 UTC
This is probably "fixed" now that Uri.php has been reverted, right?
Comment 3 Rainer Rillke @commons.wikimedia 2012-08-30 16:27:28 UTC
Yes, thank you. The result looks good and the tool that makes use of it works as expected.

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


Navigation
Links