Author: volker.haas
Description:
The imageinfo reported by the API is wrong if an unrelated image is added to the query URL. This happens on de.wikipedia.
Compare the two urls below - the first URL returns the correct imageinfo for the Image "Datei:Zoe Gräfin Wassilko 1918.jpg", the second one does not:
url 1:
url 2:
The only difference between the URLs is the additional image title at the end of url 2.
The relevant (and correct) imageinfo for url 1 is:
"-4": { "ns": 6, "title": "Datei:Zoe Gr\u00e4fin Wassilko 1918.jpg", "missing": "", "imagerepository": "shared", "imageinfo": [ { "user": "Sacha47", "size": 533162, "width": 1692, "height": 2332, "comment": "", "thumburl": "http:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/9\/9f\/Zoe_Gr%C3%A4fin_Wassilko_1918.jpg\/1200px-Zoe_Gr%C3%A4fin_Wassilko_1918.jpg", "thumbwidth": 1200, "thumbheight": 1654, "url": "http:\/\/upload.wikimedia.org\/wikipedia\/commons\/9\/9f\/Zoe_Gr%C3%A4fin_Wassilko_1918.jpg", "descriptionurl": "http:\/\/commons.wikimedia.org\/wiki\/File:Zoe_Gr%C3%A4fin_Wassilko_1918.jpg", "sha1": "1f090ed26b8eed26d4371f826ae51c532dfd3d9c" } ], "fullurl": "http:\/\/de.wikipedia.org\/wiki\/Datei:Zoe_Gr%C3%A4fin_Wassilko_1918.jpg", "editurl": "http:\/\/de.wikipedia.org\/w\/index.php?title=Datei:Zoe_Gr%C3%A4fin_Wassilko_1918.jpg&action=edit" },
whereas url 2 yields the following, incorrect image info:
"-4": { "ns": 6, "title": "Datei:Zoe Gr\u00c3\u00a4fin Wassilko 1918.jpg", "missing": "", "imagerepository": "", "fullurl": "http:\/\/de.wikipedia.org\/wiki\/Datei:Zoe_Gr%C3%83%C2%A4fin_Wassilko_1918.jpg", "editurl": "http:\/\/de.wikipedia.org\/w\/index.php?title=Datei:Zoe_Gr%C3%83%C2%A4fin_Wassilko_1918.jpg&action=edit" },
The different "title" in the response might be a hint to what goes wrong.
Version: 1.20.x
Severity: normal