Last modified: 2014-09-17 07:08:31 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 T71956, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69956 - via attribution link provides wrong mediaviewer link
via attribution link provides wrong mediaviewer link
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
MultimediaViewer (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-24 10:08 UTC by db [inactive,noenotif]
Modified: 2014-09-17 07:08 UTC (History)
6 users (show)

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


Attachments

Description db [inactive,noenotif] 2014-08-24 10:08:10 UTC
MediaViewer provides wrong link on de.wp for commons files when using the "You need to attribute the author" option.

The text produces is:

„Viglius van Aytta“ von Frans Pourbus der Ältere - http://www.insecula.com/oeuvre/photo_ME0000058875.html. Lizenziert unter Public domain über Wikimedia Commons - https://commons.wikimedia.org/wiki/File:Viglius_van_Aytta.JPG#mediaviewer/Datei:Viglius_van_Aytta.JPG

But the last link does not work due to the localized "Datei" for german "File" in it. So, for commons file use the canonical namespace as in the first part of the url.
Bad:
https://commons.wikimedia.org/wiki/File:Viglius_van_Aytta.JPG#mediaviewer/Datei:Viglius_van_Aytta.JPG

Better:
https://commons.wikimedia.org/wiki/File:Viglius_van_Aytta.JPG#mediaviewer/File:Viglius_van_Aytta.JPG


From https://de.wikipedia.org/wiki/Liste_bekannter_Pers%C3%B6nlichkeiten_der_Universit%C3%A4t_L%C3%B6wen#mediaviewer/Datei:Viglius_van_Aytta.JPG
Comment 1 db [inactive,noenotif] 2014-08-24 10:09:50 UTC
It is wrong in all options, also "share" and "embed".
Comment 2 Derk-Jan Hartman 2014-08-24 10:55:23 UTC
Not to mention that PD is not a license :)

The path for this code is.
mmv.EmbedFileFormatter.js:getCreditHtml()
mmv.EmbedFileFormatter.js:getLinkUrl()
mmv.routing.Router.js:createdHashedUrl()
mmv.routing.Router.js:createHash()
mw.Title:getPrefixedDb()


createdHashedUrl() combines the descriptionUrl with 'shared' context, with the hash which has a 'local' context.. 

If I understand correctly, the Route, is basically what defines the hash for media viewer. In that case the above combination is broken by definition, because is combines something with a remote and a local context...
Comment 3 Tisza Gergő 2014-08-25 08:12:25 UTC
Tracked in Mingle as https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/826
Comment 4 Gerrit Notification Bot 2014-08-25 19:01:06 UTC
Change 156163 had a related patch set uploaded by MarkTraceur:
Fix link to media viewer with proper namespace

https://gerrit.wikimedia.org/r/156163
Comment 5 Gerrit Notification Bot 2014-08-26 01:05:44 UTC
Change 156163 merged by jenkins-bot:
Fix link to media viewer with proper namespace

https://gerrit.wikimedia.org/r/156163
Comment 6 Erik Moeller 2014-09-17 07:08:31 UTC
Confirmed, works as advertised.

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


Navigation
Links