https://bugzilla.wikimedia.org/show_bug.cgi?id=37021

       Web browser: ---
             Bug #: 37021
           Summary: Wrong imageinfo reported
           Product: MediaWiki
           Version: 1.20-git
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: API
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: volker.h...@pediapress.com
                CC: bryan.tongm...@gmail.com, roan.katt...@gmail.com,
                    s...@reedyboy.net, soxre...@gmail.com
    Classification: Unclassified
   Mobile Platform: ---


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:

http://de.wikipedia.org/w/api.php?format=jsonfm&action=query&iiurlwidth=1200&iiprop=url|user|comment|url|sha1|size&prop=imageinfo|info&inprop=url&titles=Datei:Jordaki+Baron+Wassilko+von+Serecki+1855.jpg|Datei:Victor+Graf+Wassilko+v.+Serecki+1895.jpg|Datei:Stammwappen+Wassilko%2C+1676.jpg|Datei:Zoe+Gr%C3%A4fin+Wassilko+1918.jpg|Datei:Schloss+Berhometh+1905.jpg|Datei:Dokument+von+1428.jpg|Datei:Stephan+Graf+Wassilko+v.+Serecki+1918.jpg|Datei:Commons-logo.svg|Datei:Alexander+Graf+Wassilko+v.+Serecki+1916%2C+damals+Major.jpg|Datei:Freiherrn+Wassilko+von+Serecki.jpg|Datei:Grafen+Wassilko+von+Serecki.jpg|Datei:Nikolaus+Ritter+von+Wassilko.jpg

url 2:

http://de.wikipedia.org/w/api.php?format=jsonfm&action=query&iiurlwidth=1200&iiprop=url|user|comment|url|sha1|size&prop=imageinfo|info&inprop=url&titles=Datei:Jordaki+Baron+Wassilko+von+Serecki+1855.jpg|Datei:Victor+Graf+Wassilko+v.+Serecki+1895.jpg|Datei:Stammwappen+Wassilko%2C+1676.jpg|Datei:Zoe+Gr%C3%A4fin+Wassilko+1918.jpg|Datei:Schloss+Berhometh+1905.jpg|Datei:Dokument+von+1428.jpg|Datei:Stephan+Graf+Wassilko+v.+Serecki+1918.jpg|Datei:Commons-logo.svg|Datei:Alexander+Graf+Wassilko+v.+Serecki+1916%2C+damals+Major.jpg|Datei:Freiherrn+Wassilko+von+Serecki.jpg|Datei:Grafen+Wassilko+von+Serecki.jpg|Datei:Nikolaus+Ritter+von+Wassilko.jpg|Datei:Wappen+der+Ritter+von+Wassilko+1788.jpg

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.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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

Reply via email to