Last modified: 2014-02-24 11:21:10 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 T63815, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 61815 - API returns duplicate upload information when a file has been redirected
API returns duplicate upload information when a file has been redirected
Status: NEW
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.23.0
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-23 02:52 UTC by magog.the.ogre
Modified: 2014-02-24 11:21 UTC (History)
4 users (show)

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


Attachments

Description magog.the.ogre 2014-02-23 02:52:04 UTC
Take a look at this URL: Let's run a query asking for both redirect and imageinfo in the same request. I've provided a query for two different images; the first one is just a control image. The second one has been moved (log: https://commons.wikimedia.org/w/index.php?title=Special:Log&page=File%3AQuatrefilsd%27Aymon1849-Maugis+vole+harlemagne.jpg).

Here is the query:
https://commons.wikimedia.org/w/api.php?action=query&titles=File%3ABiserica%20evanghelica%20din%20Zagar%20%2835%29.JPG|File%3AQuatrefilsd%27Aymon1849-Maugis%20vole%20harlemagne.jpg&prop=imageinfo&redirects=&iiprop=sha1|user


Notice that the page is returning 2 results for the image that was moved, whereas it should only be returning 1. The second result doesn't have the pageid, the ns, or the title. 

This may not be a huge problem, because it is already returning the proper result above. However, my bot throws a fit when it sees an XML element with a title, because it thinks it's missing out on some data.

Thanks.

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


Navigation
Links