Page MenuHomePhabricator

Value of "Artist" should have a full URL
Closed, ResolvedPublic

Description

The "author" field of the information template, which matched with the "Artist" key in extmetadata, should have a full URL instead of a local URL.

Status quo:

"Artist": {
"value": "<a href=\"/wiki/User:Elya\" title=\"User:Elya\">Elke Wetzig</a>",
"source": "commons-desc-page"
}

Expected output:

"Artist": {
"value": "<a href=\"https://commons.wikimedia.org/wiki/User:Elya\" title=\"User:Elya\">Elke Wetzig</a>",
"source": "commons-desc-page"
}

Otherwise the value is unusable outside Wikimedia Commons.


Version: unspecified
Severity: normal
URL: https://commons.wikimedia.org/w/api.php?action=query&titles=File:Saint%20Panteleimon%20Church,%20Shevchenkove,%20Ukraine-1666.jpg&prop=imageinfo&iiprop=extmetadata&format=jsonfm

Details

Reference
bz57187

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:19 AM
bzimport added a project: CommonsMetadata.
bzimport set Reference to bz57187.

That's strange; the HTML comes ultimately from action=render, which does use absolute URLs. Seems to work for me, e.g.:
http://www.mediawiki.org/w/api.php?action=query&prop=imageinfo&iiprop=extmetadata&format=jsonfm&titles=File:1936_Morris_12_Special_coup%C3%A9.jpg

Can you tell which file produced the output above?

Change 96528 had a related patch set uploaded by Gergő Tisza:
Make sure local URLs in image description are always absolute

https://gerrit.wikimedia.org/r/96528

Gergő: How to get your patch reviewed?

Change 96528 merged by jenkins-bot:
Make sure local URLs in image description are always absolute

https://gerrit.wikimedia.org/r/96528

Assuming this bug is FIXED as all patches were merged.
If that is not the case: Please reopen and elaborate what is left to do here to get this report fixed.

Gilles raised the priority of this task from Medium to Unbreak Now!.Dec 4 2014, 10:24 AM
Gilles moved this task from Untriaged to Done on the Multimedia board.
Gilles lowered the priority of this task from Unbreak Now! to Medium.Dec 4 2014, 11:22 AM