Last modified: 2011-12-11 20:22:50 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 T34860, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32860 - UploadWizard, UploadCampaigns, Upload preferences legal code links
UploadWizard, UploadCampaigns, Upload preferences legal code links
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
UploadWizard (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-07 16:56 UTC by Jeroen De Dauw
Modified: 2011-12-11 20:22 UTC (History)
2 users (show)

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


Attachments
Screenshot (118.03 KB, image/png)
2011-12-07 21:57 UTC, Jeroen De Dauw
Details

Description Jeroen De Dauw 2011-12-07 16:56:05 UTC
Someone added legal code links to the license messages. Example:

Creative Commons Attribution ShareAlike 3.0 ([$2 legal code])

I just update the user preferences and upload campaigns code to actually pass the needed url argument and noticed that only some licenses actually have such an argument, while there are a whole bunch more messages that have the "([$2 legal code])" thing, which is now obviously not rendered. You can easily see this on the edit page of an upload campaign.
Comment 1 Neil Kandalgaonkar 2011-12-07 18:53:27 UTC
I don't quite understand this bug. Erik added the "legal code" thing to the messages, and also added a url: property in the config for the links to the licenses. The problem is he didn't add it everywhere that we show the licenses, including

- User Prefs
- Upload Campaign config

So... is this bug just saying that we need to add the link argument in those places?
Comment 2 Jeroen De Dauw 2011-12-07 20:10:07 UTC
> is this bug just saying that we need to add the link argument in those
places?

No, I already did this

The issue is that there are a bunch of licences that have the legal code thing in their message but do not have a legal code url in their definition in the config file, thus resulting in "[$2 legal code]" showing up as-is in the UI for these licenses.
Comment 3 Neil Kandalgaonkar 2011-12-07 21:47:06 UTC
Could you give me an example of a license that doesn't have a URL? I'm looking at the config and they all seem to have a URL if the message string demands it.
Comment 4 Jeroen De Dauw 2011-12-07 21:57:12 UTC
Created attachment 9633 [details]
Screenshot
Comment 5 Jeroen De Dauw 2011-12-07 21:57:38 UTC
See attachment
Comment 6 Neil Kandalgaonkar 2011-12-07 22:27:13 UTC
Yeah, but right in UploadWizard.config.php you have stanzas which contain the URL. And that's where the frontend is getting the URL. So why is that different here?

For instance, this is CC-BY-SA-3.0 Austria:

        'cc-by-sa-3.0-at' => array(
            'msg' => 'mwe-upwiz-license-cc-by-sa-3.0-at',
            'templates' => array( 'cc-by-sa-3.0-at' ),
            'icons' => array( 'cc-by', 'cc-sa' ),
            'url' => 'http://creativecommons.org/licenses/by-sa/3.0/at/legalcode'
        ),
Comment 7 Jeroen De Dauw 2011-12-07 22:55:46 UTC
Ok, my bad. Turns out there was some misplaced comfig code that I did not modify to use the legal code arg, and so causing this bug. Fixed in r105457.
Comment 8 Neil Kandalgaonkar 2011-12-09 06:16:02 UTC
You meant r105475 -- comments attached there. Doesn't seem to be fixed.

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


Navigation
Links