https://bugzilla.wikimedia.org/show_bug.cgi?id=61815
Bug ID: 61815 Summary: API returns duplicate upload information when a file has been redirected Product: MediaWiki Version: 1.23-git Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: API Assignee: wikibugs-l@lists.wikimedia.org Reporter: magog.the.o...@gmail.com CC: bjor...@wikimedia.org, bryan.tongm...@gmail.com, roan.katt...@gmail.com, s...@reedyboy.net Web browser: --- Mobile Platform: --- 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. -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l