Last modified: 2014-08-14 14:25:51 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 T59539, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57539 - File::getDescriptionText() broken on beta labs
File::getDescriptionText() broken on beta labs
Status: RESOLVED WORKSFORME
Product: Wikimedia Labs
Classification: Unclassified
deployment-prep (beta) (Other open bugs)
unspecified
All All
: Unprioritized minor
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 57248
  Show dependency treegraph
 
Reported: 2013-11-25 14:19 UTC by Tisza Gergő
Modified: 2014-08-14 14:25 UTC (History)
5 users (show)

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


Attachments

Description Tisza Gergő 2013-11-25 14:19:14 UTC
CommonsMetadata uses File::getDescriptionText() to figure out a bunch of properties from license and description templates, like LicenseShortName or ImageDescription. This does not work on beta wikis which get the image from beta Commons. For example, this image is hosted on beta Commons (and there is no image with the same name on real Commons):

http://commons.wikimedia.beta.wmflabs.org/wiki/File:Produce.jpg

The extmetadata API shows LicenseShortName:

http://commons.wikimedia.beta.wmflabs.org/w/api.php?action=query&prop=imageinfo&iiprop=extmetadata&titles=File:Produce.jpg&iiextmetadatalanguage=vo

However, it is missing when called on some other beta wiki:

http://en.wikipedia.beta.wmflabs.org/w/api.php?action=query&prop=imageinfo&iiprop=extmetadata&titles=File:Produce.jpg&iiextmetadatalanguage=vo

Not sure if related, or some different configuration issue, but the description is missing on the wiki page too:

http://en.wikipedia.beta.wmflabs.org/wiki/File:Produce.jpg

On live sites, Commons and other wikis show the same output:

http://commons.wikimedia.org/w/api.php?action=query&prop=imageinfo&iiprop=extmetadata&titles=File:Across_the_Combe_to_Poynings_-_geograph.org.uk_-_377166.jpg
http://en.wikipedia.org/w/api.php?action=query&prop=imageinfo&iiprop=extmetadata&titles=File:Across_the_Combe_to_Poynings_-_geograph.org.uk_-_377166.jpg
Comment 1 Tisza Gergő 2014-08-14 14:25:51 UTC
(In reply to Tisza Gergő from comment #0)
> Not sure if related, or some different configuration issue, but the
> description is missing on the wiki page too:
> 
> http://en.wikipedia.beta.wmflabs.org/wiki/File:Produce.jpg

Very likely related, since that page and the extmetadata API both load the beta Commons file page with action=render to get the description; that could have been broken for some reason. Cannot reproduce on current beta site.

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


Navigation
Links