Difference between revisions of "Opasnet update 2017"

From Testiwiki
Jump to: navigation, search
(RTools MediaWiki extension)
(Other Extensions)
Line 85: Line 85:
 
Currently installed extensions, still maintained unless specified otherwise. Almost all have been updated since last time. Nothing tested yet.  
 
Currently installed extensions, still maintained unless specified otherwise. Almost all have been updated since last time. Nothing tested yet.  
  
 +
*[https://www.mediawiki.org/wiki/Extension:AuthorProtect AuthorProtect]
 +
**Git maintained
 
*CategoryTree [https://www.mediawiki.org/wiki/Extension:CategoryTree]
 
*CategoryTree [https://www.mediawiki.org/wiki/Extension:CategoryTree]
 +
*ConfirmEdit is shipped with MediaWiki
 
*ContactPage [https://www.mediawiki.org/wiki/Extension:ContactPage]
 
*ContactPage [https://www.mediawiki.org/wiki/Extension:ContactPage]
 
**Need to reconfigure local settings when upgrading
 
**Need to reconfigure local settings when upgrading
 
*Contribution Scores [https://www.mediawiki.org/wiki/Extension:Contribution_Scores]
 
*Contribution Scores [https://www.mediawiki.org/wiki/Extension:Contribution_Scores]
 
*Contributors [https://www.mediawiki.org/wiki/Extension:Contributors]
 
*Contributors [https://www.mediawiki.org/wiki/Extension:Contributors]
*User Merge and Delete [https://www.mediawiki.org/wiki/Extension:UserMerge]
+
*DataValues [https://github.com/DataValues/DataValues]
**Has MediaWiki 1.29+ listed on extension page, but probably works on 1.28
+
**DataValues Geo [https://github.com/DataValues/Geo]
 +
**DataValues Time [https://github.com/DataValues/Time]
 +
**DataValues Validators [https://github.com/DataValues/Validators]
 +
**DataValues Common [https://github.com/DataValues/Common]
 +
**DataValues Interfaces [https://github.com/DataValues/Interfaces]
 +
**Still updated
 +
*Google Analytics Integration [https://www.mediawiki.org/wiki/Extension:Google_Analytics_Integration]
 
*ImageMap is shipped with MediaWiki
 
*ImageMap is shipped with MediaWiki
 
*Maps [https://www.mediawiki.org/wiki/Extension:Maps]
 
*Maps [https://www.mediawiki.org/wiki/Extension:Maps]
Line 100: Line 109:
 
**Upload files from editor
 
**Upload files from editor
 
***Has this seen any use?
 
***Has this seen any use?
 +
*PageNotice [https://www.mediawiki.org/wiki/Extension:PageNotice]
 
*SimpleCalendar [https://www.mediawiki.org/wiki/Extension:NiceCategoryList2]
 
*SimpleCalendar [https://www.mediawiki.org/wiki/Extension:NiceCategoryList2]
 +
*User Merge and Delete [https://www.mediawiki.org/wiki/Extension:UserMerge]
 +
**Has MediaWiki 1.29+ listed on extension page, but probably works on 1.28
 +
*Validator [https://www.mediawiki.org/wiki/Extension:Validator]
 
*Widgets [https://www.mediawiki.org/wiki/Extension:Widgets]
 
*Widgets [https://www.mediawiki.org/wiki/Extension:Widgets]
 
**Works
 
**Works
*ConfirmEdit is shipped with MediaWiki
 
*DataValues [https://github.com/DataValues/DataValues]
 
**DataValues Geo [https://github.com/DataValues/Geo]
 
**DataValues Time [https://github.com/DataValues/Time]
 
**DataValues Validators [https://github.com/DataValues/Validators]
 
**DataValues Common [https://github.com/DataValues/Common]
 
**DataValues Interfaces [https://github.com/DataValues/Interfaces]
 
**Still updated
 
*AuthorProtect [https://www.mediawiki.org/wiki/Extension:AuthorProtect]
 
**Git maintained
 
*Google Analytics Integration [https://www.mediawiki.org/wiki/Extension:Google_Analytics_Integration]
 
*PageNotice [https://www.mediawiki.org/wiki/Extension:PageNotice]
 
*Validator [https://www.mediawiki.org/wiki/Extension:Validator]
 
  
 
==== Obsolete or otherwise dead ====
 
==== Obsolete or otherwise dead ====
Line 124: Line 124:
 
*CheckUser [https://www.mediawiki.org/wiki/Extension:CheckUser]
 
*CheckUser [https://www.mediawiki.org/wiki/Extension:CheckUser]
 
**Integrated functionality?
 
**Integrated functionality?
*Todo Tasks [https://www.mediawiki.org/wiki/Extension:Todo_Tasks]
 
**Not maintained since 2009, expect to break.
 
 
*CreateBox [https://www.mediawiki.org/wiki/Extension:CreateBox]
 
*CreateBox [https://www.mediawiki.org/wiki/Extension:CreateBox]
 
**Archived
 
**Archived
Line 134: Line 132:
 
*DynamicPageList [https://www.mediawiki.org/wiki/Extension:DynamicPageList_(third-party)]
 
*DynamicPageList [https://www.mediawiki.org/wiki/Extension:DynamicPageList_(third-party)]
 
**Very old version, might not work on latest MediaWiki and PHP
 
**Very old version, might not work on latest MediaWiki and PHP
 +
*EmailAddressImage [https://www.mediawiki.org/wiki/Extension:EmailAddressImage]
 
*Google Co-op Extension [https://www.mediawiki.org/wiki/Extension:Google_Custom_Search_Engine] ?
 
*Google Co-op Extension [https://www.mediawiki.org/wiki/Extension:Google_Custom_Search_Engine] ?
 
**Search functionality that was never used and is now obsolete?
 
**Search functionality that was never used and is now obsolete?
Line 145: Line 144:
 
*NiceCategoryList [https://www.mediawiki.org/wiki/Extension:NiceCategoryList2]
 
*NiceCategoryList [https://www.mediawiki.org/wiki/Extension:NiceCategoryList2]
 
**Security risk
 
**Security risk
*EmailAddressImage [https://www.mediawiki.org/wiki/Extension:EmailAddressImage]
+
*Todo Tasks [https://www.mediawiki.org/wiki/Extension:Todo_Tasks]
 +
**Not maintained since 2009, expect to break.
 +
 
 +
==== Not listed in [[Special:Version]] ====
 +
Have to check local settings to see if these are installed.
 +
 
 +
*AccessControl [https://www.mediawiki.org/wiki/Extension:AccessControl]
 +
**Maintained
 +
*ArticleComments [https://www.mediawiki.org/wiki/Extension:ArticleComments]
 +
**Archived
 +
*CategoryStepper [https://www.mediawiki.org/wiki/Extension:CategoryStepper]
 +
**Unmaintained
 +
*CategorySuggest [https://www.mediawiki.org/wiki/Extension:CategorySuggest]
 +
**Maintained
 +
*Discussion [https://www.mediawiki.org/wiki/Extension:Discussion]
 +
**Not maintained, download link dead.
 +
*DiscussionThreading [https://www.mediawiki.org/wiki/Extension:DiscussionThreading]
 +
**Maintained
 +
*Header Footer [https://www.mediawiki.org/wiki/Extension:Header_Footer]
 +
**Maintained
 +
*Lockdown [https://www.mediawiki.org/wiki/Extension:Lockdown]
 +
**Maintained
 +
*mfiles, mfiles2
 +
*NamespacePermissions [https://www.mediawiki.org/wiki/Extension:NamespacePermissions]
 +
**Suggested: Lockdown, which is also present on the server
 +
*PageDisqus [https://www.mediawiki.org/wiki/Extension:PageDisqus]
 +
**Still in beta, git has some recent commits ...
 +
*PageID
 +
**One of ours?
 +
*PdfHandler [https://www.mediawiki.org/wiki/Extension:PdfHandler]
 +
**Shipped with current version of MediaWiki
 +
*Renameuser
 +
**Shipped with current version of MediaWiki
 +
*SelectCategory [https://www.mediawiki.org/wiki/Extension:SelectCategory]
 +
**Maintained
 +
*SimpleAntiSpam [https://www.mediawiki.org/wiki/Extension:SimpleAntiSpam]
 +
**Merged into MediaWiki
 +
*SpamBlacklist [https://www.mediawiki.org/wiki/Extension:SpamBlacklist]
 +
**Maintained
 +
*StubManager [https://www.mediawiki.org/wiki/Extension:StubManager]
 +
**Archived
 +
*Survey [https://www.mediawiki.org/wiki/Extension:Survey]
 +
**Unmaintained
 +
**Alternative if still in use: QuickSurveys [https://www.mediawiki.org/wiki/Extension:QuickSurveys]?
 +
*TitleBlacklist [https://www.mediawiki.org/wiki/Extension:TitleBlacklist]
 +
**Maintained
 +
*WhoIsWatching [https://www.mediawiki.org/wiki/Extension:WhoIsWatching]
 +
**Maintained
 +
*WhosOnlineAjax [https://www.mediawiki.org/wiki/Extension:AjaxWhosOnline]
 +
**Archived
 +
**Alternative: WhosOnline [https://www.mediawiki.org/wiki/Extension:WhosOnline]
  
 
==See Also==
 
==See Also==
 
[[Opasnet:Technical_documentation]]
 
[[Opasnet:Technical_documentation]]

Revision as of 07:50, 22 June 2017

This page contains notes produced while updating Opasnet server systems during the summer of 2017.

RTools server

CentOS 6.4: full support ended, but still get maintenance updates.

Key software, upgrade paths and related issues:

  • apache 2.2.15 -> 2.2.32 or 2.4.25
    • newer branch not particularly important
  • PHP 5.3.3 -> 5.6.x or 7.1.x
    • incompatibilities in mysql functions
      • "mysql" -> "mysqli" (5.5)
    • should upgrade to latest version
  • MySQL 5.1 -> 5.7
  • mongoDB 2.4 -> 3.2
    • should be relatively easy as we are not using sharding etc.
  • rtools_server PHP application
    • starts on test server after minor changes
    • further testing needed
  • opasnet_base2

Opasnet-wiki server

CentOS 6.5: full support ended, but still get maintenance updates.

Key software, upgrade paths and related issues:

  • apache 2.2.15 -> 2.2.32 or 2.4.25
  • PHP 5.4.28 -> 5.6.x or 7.1.x
    • 5.5.9+ required by currently supported mediawiki releases
    • latest php also supported
    • incompatibilities likely to occur in 5.4->5.5, hence might as well upgrade to latest
  • MySQL 5.5.37 -> 5.5.56 or 5.7.x
  • MediaWiki 1.20.0 -> 1.27 (LTS) or 1.28.2 (latest)
    • need to check supported extensions
    • MyExtension.php no longer supported, need extension.json for registering extensions
    • Composer might be useful for managing PHP dependencies

RTools MediaWiki extension

  • RTools special page class (now named SpecialRtools)
    • Creates instance of rtools_client
    • separate config file, which is included by SpecialRTools instead of rtools_client for some reason
    • fixed: "mysql" to "mysqli"
    • fixed: "wfMsg" to "wfMessage->text()"
  • <rcode> tag
    • Detected by parser hooks
    • RToolsParser class
      • fixed: "wfMsg" to "wfMessage->text()"
      • fixed: class instead of global functions
        • create class instance in parser given by hook in order to retain variable values
      • fixed: added "wgOut->addModules( 'ext.RTools.parser' );" which enables the on-page UI
      • fixed: changed efRCodeMBInArray to a static function and changed reference in templates/inputs/checkbox.php
  • rtools_client
    • handles connections and job submissions etc. to server
    • xml-rpc library
      • communicates with rtools_server API
  • javascripts
    • script.aculo.us + prototype
      • UI
      • ajax
      • old versions, probably still acceptable
    • loaded by mediawiki resource loader
      • now set up in extension.json
  • wiki database
    • rtools_inputs
      • added schema update hook to create the necessary table if missing
  • Current issues:
    • Show code button does not work
    • Run page throws: Didn't receive 200 OK from remote server. (HTTP/1.0 500 Internal Server Error), which is a xml-rpc related error
    • Runs and shows outputs (oprint and cat), but code is not visible, embed also does not work
    • Input forms are slightly broken: conditional categories do not work, checkboxes crash the whole page
    • Rtools page does not update, shows error until refreshed once the run is over. Error on page: "jQuery is not defined", but it is loaded by mediawiki by default. Caused by some linking problem between the special page and mediawiki.
      • SpecialRTools-class problem with include of "template/index.php" in method "output" not scoping as expected. Including javascript dependencies separately resolves the first issue, but results in "mw not defined" indicating no access to mediawiki.
      • Special page includes javascript for both parser and special page, which does not happen on the current server. It is loaded as part of parser initialization on every page.
      • Works 1% of the time ...

Extensions

Our extensions

  • ExternalSourceBrowser: Einari
  • OpasnetBase: Einari, Juha
  • OpasnetBaseImport: Einari, Juha
  • Table2Base: Juha, Einari
  • OpasnetRater: Einari

Other Extensions

Currently installed extensions, still maintained unless specified otherwise. Almost all have been updated since last time. Nothing tested yet.

  • AuthorProtect
    • Git maintained
  • CategoryTree [1]
  • ConfirmEdit is shipped with MediaWiki
  • ContactPage [2]
    • Need to reconfigure local settings when upgrading
  • Contribution Scores [3]
  • Contributors [4]
  • DataValues [5]
    • DataValues Geo [6]
    • DataValues Time [7]
    • DataValues Validators [8]
    • DataValues Common [9]
    • DataValues Interfaces [10]
    • Still updated
  • Google Analytics Integration [11]
  • ImageMap is shipped with MediaWiki
  • Maps [12]
    • Very active development
    • Possible incompatibilities with RTools when upgraded
  • Math [13]
  • MsUpload [14]
    • Upload files from editor
      • Has this seen any use?
  • PageNotice [15]
  • SimpleCalendar [16]
  • User Merge and Delete [17]
    • Has MediaWiki 1.29+ listed on extension page, but probably works on 1.28
  • Validator [18]
  • Widgets [19]
    • Works

Obsolete or otherwise dead

Not maintained anymore, very old, security risk or integrated to MediaWiki.

  • Ajax Show Editors [20]
    • Archived
  • CheckUser [21]
    • Integrated functionality?
  • CreateBox [22]
    • Archived
    • Option: InputBox [23]
      • This is included with new installations of MediaWiki 1.21 and above
    • Used on Create_article
      • Any others?
  • DynamicPageList [24]
    • Very old version, might not work on latest MediaWiki and PHP
  • EmailAddressImage [25]
  • Google Co-op Extension [26] ?
    • Search functionality that was never used and is now obsolete?
  • MsLinks [27]
    • Used to display files on pages using "{{#l:Testfile.pdf}}"
      • Has this been used at all?
    • Very old version, likely broken
  • NewPageCSS [28]
    • Very old version
    • Security risk?
  • NiceCategoryList [29]
    • Security risk
  • Todo Tasks [30]
    • Not maintained since 2009, expect to break.

Not listed in Special:Version

Have to check local settings to see if these are installed.

  • AccessControl [31]
    • Maintained
  • ArticleComments [32]
    • Archived
  • CategoryStepper [33]
    • Unmaintained
  • CategorySuggest [34]
    • Maintained
  • Discussion [35]
    • Not maintained, download link dead.
  • DiscussionThreading [36]
    • Maintained
  • Header Footer [37]
    • Maintained
  • Lockdown [38]
    • Maintained
  • mfiles, mfiles2
  • NamespacePermissions [39]
    • Suggested: Lockdown, which is also present on the server
  • PageDisqus [40]
    • Still in beta, git has some recent commits ...
  • PageID
    • One of ours?
  • PdfHandler [41]
    • Shipped with current version of MediaWiki
  • Renameuser
    • Shipped with current version of MediaWiki
  • SelectCategory [42]
    • Maintained
  • SimpleAntiSpam [43]
    • Merged into MediaWiki
  • SpamBlacklist [44]
    • Maintained
  • StubManager [45]
    • Archived
  • Survey [46]
    • Unmaintained
    • Alternative if still in use: QuickSurveys [47]?
  • TitleBlacklist [48]
    • Maintained
  • WhoIsWatching [49]
    • Maintained
  • WhosOnlineAjax [50]
    • Archived
    • Alternative: WhosOnline [51]

See Also

Opasnet:Technical_documentation