Add extension licenses to extension.json so they appear correctly on Special:Version
Open, NormalPublic

Description

Some MediaWiki extensions are missing the license-name field in the file extension.json or in $wgExtensionCredits. This means no license is shown for them in Special:Version (e.g. https://en.wikipedia.org/wiki/Special:Version) or the license is displayed as 'License', instead of something like for example GPL-2.0-or-later.

To fix this, we need to make changes like https://gerrit.wikimedia.org/r/#/c/264553/ in the relevant extensions.

  1. Check the existing LICENSE or COPYING file of the extension to verify which license the extension has.
  2. Look up the corresponding value of that license in https://spdx.org/licenses/
  3. Add that value as the value of the license-name parameter to the file extension.json.
  4. Provide your patch for that extension in Wikimedia Gerrit. See https://www.mediawiki.org/wiki/Gerrit/Tutorial for how to set up Git and Gerrit.

Note that some extensions are possibly missing a LICENSE or COPYING file, which would result in a broken license link.

Note: the 'extensions' listed as wikibase or data values is outside scope of this task. Most of these are actually libraries and instead need to be moved to the libraries section of SpecialVersion. (see: T123937)

Still to do (missing a line license-name in the file extension.json) as of 2018-10-05:

  • AJAXPoll
  • AkismetKlik
  • ArticleRatings
  • Athena
  • BlueSpiceSubPageTree
  • Cargo
  • CommentStreams
  • ConfirmEdit/MathCaptcha
  • ConfirmEdit/QuestyCaptcha
  • ConfirmEdit/ReCaptcha
  • ConfirmEdit/ReCaptchaNoCaptcha
  • ContributionTracking -> T99643
  • Contributors
  • Diagnosis
  • DiscussionThreading
  • examples/ContentAction
  • examples/DataPages
  • ExternalArticles
  • GoogleDocTag
  • GoogleGeocode
  • GooglePlaces
  • HoverGallery
  • Hovergallery
  • Hreflang
  • LifeWebCore
  • LockDownEnglishPages
  • MagicNumberedHeadings
  • MarkAsHelpful
  • MintyDocs
  • MP3MediaHandler
  • NukeDPL
  • NumberOfWikis
  • OAuthAuthentication
  • OpenIDConnect
  • OpenLayers
  • PageDisqus
  • PageLanguage
  • PhpTagsWidgets
  • PluggableAuth
  • Prezi
  • PronunciationRecording
  • Push
  • Quantcast
  • QuickGV
  • QuickSearchLookup
  • SafeDelete
  • SearchExtraNS -> T100957
  • SecureSessions
  • SemanticTitle
  • ShoutWikiAds
  • SimpleSAMLphp
  • SkinPerPage
  • Snippet
  • StaffEdits
  • StatCounter
  • Tabber
  • TestLanguageNameGrammar
  • Theme
  • TwnMainPage
  • UserAgreement
  • WhitelistPages
  • WikipediaExtracts

Related Objects

There are a very large number of changes, so older changes are hidden. Show Older Changes

Change 372408 merged by jenkins-bot:
[mediawiki/extensions/LinkTarget@master] Provide license label and COPYING file

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

Kghbln updated the task description. (Show Details)Aug 17 2017, 8:35 PM
Kghbln updated the task description. (Show Details)

Change 372505 had a related patch set uploaded (by Kghbln; owner: Karsten Hoffmeyer):
[mediawiki/extensions/OpenBadges@master] Do some maintenance

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

Change 372510 had a related patch set uploaded (by Kghbln; owner: Karsten Hoffmeyer):
[mediawiki/extensions/AWS@master] Do some maintenance

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

Kghbln updated the task description. (Show Details)Aug 18 2017, 8:28 AM
Kghbln added a project: Epic.

Change 372510 merged by jenkins-bot:
[mediawiki/extensions/AWS@master] Do some maintenance

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

Change 372505 merged by jenkins-bot:
[mediawiki/extensions/OpenBadges@master] Do some maintenance

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

Change 264869 abandoned by SamanthaNguyen:
Add license-name to MediaWikiChat.php

Reason:
Got licensed under GPL-2.0 in https://gerrit.wikimedia.org/r/#/c/300075/ a while ago (28 July 2016), so abandoning this patch.

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

Restricted Application added a subscriber: jeblad. · View Herald TranscriptSep 3 2017, 5:22 PM

Change 379969 had a related patch set uploaded (by Seb35; owner: Seb35):
[mediawiki/extensions/MediaWikiFarm@master] Add LICENSE

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

Change 379969 merged by jenkins-bot:
[mediawiki/extensions/MediaWikiFarm@master] Add LICENSE

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

Seb35 updated the task description. (Show Details)Sep 23 2017, 3:13 PM
Mainframe98 updated the task description. (Show Details)Oct 13 2017, 5:14 PM

Change 384752 had a related patch set uploaded (by Kghbln; owner: Karsten Hoffmeyer):
[mediawiki/extensions/AddThis@master] Provide license information etc.

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

Kghbln updated the task description. (Show Details)Oct 17 2017, 7:05 PM

Change 384752 merged by jenkins-bot:
[mediawiki/extensions/AddThis@master] Provide license information etc.

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

Change 386044 had a related patch set uploaded (by Kghbln; owner: Karsten Hoffmeyer):
[mediawiki/extensions/PipeEscape@master] Provide license file and add file docu

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

Change 386044 merged by jenkins-bot:
[mediawiki/extensions/PipeEscape@master] Provide license file and add file docu

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

Change 387060 had a related patch set uploaded (by Kghbln; owner: Karsten Hoffmeyer):
[mediawiki/extensions/DisplayTitle@master] Add missing license label

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

Change 387060 merged by jenkins-bot:
[mediawiki/extensions/DisplayTitle@master] Add missing license label

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

Some extensions have a file named after a license, please have a look if the file needs just a rename to fulfill this task.

  • Carp - AGPL-3.0.txt
  • Genderize - AGPL-3.0.txt
  • HidePrefix - AGPL-3.0.txt
  • WhiteSpace - AGPL-3.0.txt
  • SoundManager2Button - SoundManager2_BSD_license.txt

Change 394844 had a related patch set uploaded (by Samwilson; owner: Samwilson):
[mediawiki/extensions/FlickrAPI@master] Add license-name to extension.json

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

Change 394844 merged by jenkins-bot:
[mediawiki/extensions/FlickrAPI@master] Add license-name to extension.json

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

Change 402392 had a related patch set uploaded (by Kghbln; owner: Karsten Hoffmeyer):
[mediawiki/extensions/UrlGetParameters@master] Provides some tweaks and makes a new release

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

Change 402392 merged by jenkins-bot:
[mediawiki/extensions/UrlGetParameters@master] Provides some tweaks and makes a new release

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

Change 404165 had a related patch set uploaded (by LukBukkit; owner: LukBukkit):
[mediawiki/extensions/EtherpadLite@master] Added the COPYING file containing the licenses

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

Change 423684 had a related patch set uploaded (by Kghbln; owner: Kghbln):
[mediawiki/extensions/I18nTags@master] Provide license file and label

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

Change 423684 merged by jenkins-bot:
[mediawiki/extensions/I18nTags@master] Provide license file and label

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

Change 404165 merged by jenkins-bot:
[mediawiki/extensions/EtherpadLite@master] Added the COPYING file containing the licenses

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

MarcoAurelio updated the task description. (Show Details)Aug 4 2018, 6:44 PM
Aklapper renamed this task from Add extension licenses so they appear correctly on Special:Version to Add extension licenses to extension.json so they appear correctly on Special:Version.Sep 8 2018, 11:16 AM
Aklapper updated the task description. (Show Details)
D3r1ck01 added a subscriber: D3r1ck01.

Will help mentor this for Google-Code-in-2018

Aklapper updated the task description. (Show Details)Oct 5 2018, 8:08 PM
Aklapper updated the task description. (Show Details)Oct 5 2018, 9:08 PM

I've played a bit with this and updated the list of extensions that don't have a license-name value in their .json file in the task description by running

#!/bin/bash
grep -c --include="extension.json" -r "license-name" . | while read -r line ; do
  if [[ $(echo "${line: -1}") = 0 ]]; then
    echo $(echo "$line" | sed -e "s/\/extension.json\:0//")
  fi
done

@D3r1ck01: I think this is only a safe Google-Code-in-2018 task for repositories which do have a COPYING or LICENSE file. When there is none, a GCI student would have to investigate the source files for headers containing license info, the history of the extension homepage on mediawiki.org and who set the "License" parameter on the wiki page, etc.
Furthermore, sometimes things are inconsistent, for example I just filed https://phabricator.wikimedia.org/T206363 as an outcome of my playing.

D3r1ck01 updated the task description. (Show Details)Oct 5 2018, 9:21 PM
D3r1ck01 added a comment.EditedOct 5 2018, 9:23 PM

That makes a lot of sense @Aklapper. Thanks for making the list of extensions! In that case we can import this into GCI as a recurrent task. Also the only concerns are;

  • I hope it won't be a hard dependency for us to merge the participants work before approving the task on GCI as there could be some delays to merge code as I do not have +2 rights so maybe a +1 on the participants patch could mean approval?
  • Also, maybe we could poke maintainer of mediawiki/* sometime to merge the patches that have been approved during GCI, right?

Also, I've made the list have checkboxes to track which has been done and which is pending! :)

Change 469848 had a related patch set uploaded (by Zoranzoki21; owner: Zoranzoki21):
[mediawiki/extensions/CommentStreams@master] Add license information to CommentStreams extension

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

Change 469849 had a related patch set uploaded (by Zoranzoki21; owner: Zoranzoki21):
[mediawiki/extensions/ExternalArticles@master] Add license-name to ExternalArticles extension

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

Change 469848 merged by jenkins-bot:
[mediawiki/extensions/CommentStreams@master] Add license information to CommentStreams extension

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

Change 470164 had a related patch set uploaded (by Bjornskjald; owner: Bjornskjald):
[mediawiki/extensions/PronunciationRecording@master] Add license-name field

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

Change 470165 had a related patch set uploaded (by Bjornskjald; owner: Bjornskjald):
[mediawiki/extensions/PluggableAuth@master] Add license-name field

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

D3r1ck01 updated the task description. (Show Details)Oct 28 2018, 9:40 AM

Change 469849 merged by jenkins-bot:
[mediawiki/extensions/ExternalArticles@master] Add license-name to ExternalArticles extension

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

D3r1ck01 updated the task description. (Show Details)Oct 28 2018, 4:36 PM

Change 470303 had a related patch set uploaded (by Stibba; owner: Stibba):
[mediawiki/extensions/HoverGallery@master] Add license-name to extension.json of HoverGallery

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

Change 470304 had a related patch set uploaded (by Stibba; owner: Stibba):
[mediawiki/extensions/OpenLayers@master] Add license-name to extension.json of OpenLayers

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

D3r1ck01 updated the task description. (Show Details)Oct 29 2018, 10:17 AM

Change 470304 merged by jenkins-bot:
[mediawiki/extensions/OpenLayers@master] Add license-name to extension.json of OpenLayers

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

Change 470303 merged by jenkins-bot:
[mediawiki/extensions/HoverGallery@master] Add license-name to extension.json of HoverGallery

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

Umherirrender removed a subscriber: Umherirrender.

Change 470165 merged by jenkins-bot:
[mediawiki/extensions/PluggableAuth@master] Add license-name field to extension.json

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

D3r1ck01 updated the task description. (Show Details)Oct 29 2018, 8:04 PM

Change 470532 had a related patch set uploaded (by Rafidaslam; owner: Rafid Aslam):
[mediawiki/extensions/TestLanguageNameGrammar@master] extension.json: Add license-name field

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

Change 470533 had a related patch set uploaded (by Rafidaslam; owner: Rafid Aslam):
[mediawiki/extensions/SemanticTitle@master] extension.json: Add license-name field

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

Change 470532 merged by jenkins-bot:
[mediawiki/extensions/TestLanguageNameGrammar@master] extension.json: Add license-name field

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

Change 470533 merged by jenkins-bot:
[mediawiki/extensions/SemanticTitle@master] extension.json: Add license-name field

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

Change 470164 had a related patch set uploaded (by Bjornskjald; owner: Bjornskjald):
[mediawiki/extensions/PronunciationRecording@master] Add license-name field to extension.json

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

Change 470546 had a related patch set uploaded (by Rafidaslam; owner: Rafid Aslam):
[mediawiki/extensions/QuickGV@master] extension.json: Add license-name field

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

Change 470548 had a related patch set uploaded (by Rafidaslam; owner: Rafid Aslam):
[mediawiki/extensions/Push@master] extension.json: Add license-name field

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

Change 470588 had a related patch set uploaded (by Rafidaslam; owner: Rafid Aslam):
[mediawiki/extensions/WikipediaExtracts@master] extension.json: Add license-name field

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

Change 470589 had a related patch set uploaded (by Rafidaslam; owner: Rafid Aslam):
[mediawiki/extensions/TwnMainPage@master] extension.json: Add license-name field

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

D3r1ck01 updated the task description. (Show Details)Oct 30 2018, 1:01 PM
rafidaslam updated the task description. (Show Details)Oct 30 2018, 1:08 PM
rafidaslam updated the task description. (Show Details)

Change 470589 merged by jenkins-bot:
[mediawiki/extensions/TwnMainPage@master] extension.json: Add license-name field

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

D3r1ck01 updated the task description. (Show Details)Oct 30 2018, 2:18 PM
D3r1ck01 updated the task description. (Show Details)Oct 30 2018, 4:03 PM

Change 470164 merged by jenkins-bot:
[mediawiki/extensions/PronunciationRecording@master] Add license-name field to extension.json

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

Change 470588 merged by jenkins-bot:
[mediawiki/extensions/WikipediaExtracts@master] extension.json: Add license-name field

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

Change 470546 merged by jenkins-bot:
[mediawiki/extensions/QuickGV@master] extension.json: Add license-name field

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

Change 470548 merged by jenkins-bot:
[mediawiki/extensions/Push@master] extension.json: Add license-name field

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