Last modified: 2014-11-03 17:21:41 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 T68564, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66564 - [Javascript bug]: Some image descriptions (class mv-mmv-author) show "[object Object]"
[Javascript bug]: Some image descriptions (class mv-mmv-author) show "[object...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
MultimediaViewer (Other open bugs)
master
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 71135
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-12 23:57 UTC by T. Gries
Modified: 2014-11-03 17:21 UTC (History)
5 users (show)

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


Attachments

Description T. Gries 2014-06-12 23:57:00 UTC
see screenshot and DOM/Firebug:

<img src="https://i.imgur.com/rsafvCX.png">
Comment 1 Tisza Gergő 2014-06-13 19:31:52 UTC
Do you have a live test case? If not, can you share the response from api.php?format=jsonfm&action=query&prop=imageinfo&iiprop=extmetadata&titles=<filename> ?
Comment 2 T. Gries 2014-07-10 23:18:16 UTC
The problem is still present in version 0aab988 (10.07.2014).

I am now going to try the api.php?format=jsonfm&action=query&prop=imageinfo&iiprop=extmetadata&titles=<filename> call.
Comment 3 T. Gries 2014-07-10 23:27:00 UTC
(In reply to Tisza Gergő from comment #1)
> Do you have a live test case?
No
> If not, can you share the response from
> api.
> php?format=jsonfm&action=query&prop=imageinfo&iiprop=extmetadata&titles=<file
> name> ?

Yes please:


{
    "query": {
        "pages": {
            "-1": {
                "ns": 0,
                "title": "Greensmoothie1.jpg",
                "missing": ""
            }
        }
    }
}

This image results in 

[object Object] [object Object]

on the MMV page.
Comment 4 Tisza Gergő 2014-07-11 00:24:04 UTC
Could you paste the API response again, with "File:" included on the file name? i.e.

api.php?format=jsonfm&action=query&prop=imageinfo&iiprop=extmetadata&titles=File:Greensmoothie1.jpg
Comment 5 T. Gries 2014-07-11 01:40:22 UTC
{
    "query": {
        "pages": {
            "15668": {
                "pageid": 15668,
                "ns": 6,
                "title": "File:Greensmoothie1.jpg",
                "imagerepository": "local",
                "imageinfo": [
                    {
                        "extmetadata": {
                            "DateTime": {
                                "value": "2014-05-26T17:09:14Z",
                                "source": "mediawiki-metadata",
                                "hidden": ""
                            },
                            "ObjectName": {
                                "value": {
                                    "_": "160592163"
                                },
                                "source": "file-metadata",
                                "hidden": ""
                            },
                            "iimVersion": {
                                "value": 2,
                                "source": "file-metadata",
                                "hidden": ""
                            },
                            "Source": {
                                "value": {
                                    "_": "iStockphoto"
                                },
                                "source": "file-metadata",
                                "hidden": ""
                            },
                            "Artist": {
                                "value": {
                                    "_": "pilipphoto"
                                },
                                "source": "file-metadata"
                            },
                            "SpecialInstructions": {
                                "value": {
                                    "_": "NR"
                                },
                                "source": "file-metadata",
                                "hidden": ""
                            },
                            "Credit": {
                                "value": {
                                    "_": "Getty Images/iStockphoto"
                                },
                                "source": "file-metadata",
                                "hidden": ""
                            },
                            "ImageDescription": {
                                "value": {
                                    "_": "Healthy green smoothie"
                                },
                                "source": "file-metadata"
                            }
                        }
                    }
                ]
            }
        }
    }
}
Comment 6 Tisza Gergő 2014-07-11 07:27:28 UTC
Thanks! The expected format would be

    "Artist": {
        "value": "pilipphoto",
        "source": "file-metadata"
    }

so something weird must be going on with the EXIF data. Could you share the image?

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


Navigation
Links