Last modified: 2014-09-24 01:26:39 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 14048 - Special:Export should have an option to export with the sites license
Special:Export should have an option to export with the sites license
Product: MediaWiki
Classification: Unclassified
Export/Import (Other open bugs)
All All
: Low enhancement with 3 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
: 15633 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2008-05-08 18:54 UTC by Wiredtape
Modified: 2014-09-24 01:26 UTC (History)
7 users (show)

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

Patch (19.73 KB, patch)
2008-05-08 19:16 UTC, Wiredtape
patch (19.73 KB, patch)
2008-05-08 19:36 UTC, Wiredtape
Patch (860 bytes, patch)
2008-05-09 23:24 UTC, Wiredtape

Description Wiredtape 2008-05-08 18:54:27 UTC
Seeing as several of the GNU licenses and CC licenses require attribution, it would stand to reason that Special:Export should have the option to produce the article with a small attribution.. In the form of a template or a system message... 

Additional questions to consider:
1) Whether this should happen to all revisions.. or latest revision?
2) If this should be an admin setting (ie. localsettings) or a setting the requester can select on the special:export page?
Comment 1 Wiredtape 2008-05-08 19:16:03 UTC
Created attachment 4888 [details]

remember to add $wgExportWLicense = "TRUE"; to localsettings.php
Comment 2 Wiredtape 2008-05-08 19:19:38 UTC
patch id=4888 enables does the following:

1) Checks if $wgExportWLicense = TRUE
2) adds template {{ExportLicense}} to top of latest rev article text
Comment 3 Wiredtape 2008-05-08 19:36:08 UTC
Created attachment 4889 [details]

have just realized that adding the template is awfully stupid, since the site which imports it will obviously not have that template :)

therefore, i've changed the addition to: $wgExportLicense and I allow the user to specify what that is.. a system message, some text, html or a template...
Comment 4 Aryeh Gregor (not reading bugmail, please e-mail directly) 2008-05-09 17:01:38 UTC
Do not submit entire files.  Submit patches using "svn diff" or "diff -u".
Comment 5 Wiredtape 2008-05-09 23:24:49 UTC
Created attachment 4890 [details]

Diff -u patch, as simetrical pointed out...
Comment 6 Siebrand Mazeland 2008-08-17 22:14:23 UTC
Keywords: patch
Comment 7 Siebrand Mazeland 2008-08-17 22:47:15 UTC
1. Applied patch
2. Added "$wgExportWLicense = true;" to LocalSettings.php
3. Added "$wgExportLicense = "ExportLicense";" to LocalSettings.php
4. Exported [[Main Page]]

Observed result: Works as advertised. Content of $wgExportLicense was added to the export, prepended to the most recent version

Additional comments: I am not convinced this is an elegant solution. How about adding a <license> tag below <page> level? I think that the site license ($wgRightsPage/$wgRightsText) should be used by default, and could possibly differ by adding configuration options. This would also imply that the SpecialImport.php should be changed to 'do something' with the license (talk page? edit summary? sub page /license?)

So even though the patch works, I haven't committed it.
Comment 8 Chad H. 2008-08-17 22:50:53 UTC
Agreed. A <license> tag makes much more sense that tacking the license on top of the text.
Comment 9 Aryeh Gregor (not reading bugmail, please e-mail directly) 2008-08-17 23:48:48 UTC
Are there any backward-compatibility issues with changing the export format, though?
Comment 10 Siebrand Mazeland 2008-08-17 23:51:00 UTC
I am *assuming* that the new tag is to be ignored in older versions. Just make an export of a page, add the license tag, import it in an older version and see if it break or works?
Comment 11 Wiredtape 2008-08-18 00:18:59 UTC
At the time, i had raised the proposal to wikitech-l, and there was a long conversation about the matter... perhaps a look at the thoughts there is appropriate.. (the date should be around the time i posted the bug, may 09 2008.

I would support the <license> method.. and perhaps a small box with the license info could be used, like the small box that shows which categories a page belongs to... 
Comment 12 Siebrand Mazeland 2008-08-18 18:47:38 UTC
Mass compoment change: <some> -> Export/Import
Comment 13 Chad H. 2008-09-18 17:53:17 UTC
*** Bug 15633 has been marked as a duplicate of this bug. ***
Comment 14 Ariel T. Glenn 2011-11-24 16:00:50 UTC
What about the author list as a solution to the problem?  That code is already in Export.php and SpecialExport, and even usable after It allows the list of authors for a page to be exported even when only the current revision is exported. (If you export full history you already have the user names/IPs included in the revisions.)
Comment 15 Sumana Harihareswara 2012-10-12 01:24:14 UTC
Comment on attachment 4890 [details]

Marking patch as obsolete because the code review in comments showed that it isn't quite the solution desired.  But thank you for the patch.

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