Sunil Mohan Adapa 8a4fd1def4
mediawiki: Fix problem with session cache failing logins
Set the session cache to use database. This will also have the added benefit of
sessions persisting across reboots (and PHP session cleanups). See bug report on
why this is needed. https://salsa.debian.org/freedombox-team/plinth/issues/1736

We are unfortunately modifying the MediaWiki settings that file that we are
shipping when preferences are modified in the FreedomBox UI. This means that if
a newer version of this settings file is shipped, then FreedomBox package will
show configuration file prompts. To solve this, introduce a new static settings
file that will have lower priority than the file modified by FreedomBox UI.

Closes: #1736.

Tests:

- Test that running FreedomBox daemon with changes runs the MediaWiki app's
  setup and introduces the new line into LocalSettings.php

- That LocalSettings.php will be populated with lines to include
  FreedomBoxStaticSettings.php and FreedomBoxSettings.php in that order when
  'actions/mediawiki setup' is run. This should work when no lines are present,
  one of the lines is already present and both the lines are already present.

- Test that running './setup.py install' installs FreedomBoxStaticSettings.php.

- Test that MediaWiki runs without FreedomBoxStaticSettings.php

- Test that private wiki and public registrations settings work with the new
  changes.

- Run functional tests for MediaWiki app with the changes.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-30 20:38:30 -05:00
..
2019-12-07 13:08:35 -05:00
2019-12-07 13:08:35 -05:00
2019-12-07 13:08:35 -05:00
2019-12-07 13:08:49 -05:00
2019-12-07 13:08:35 -05:00
2019-12-07 13:08:35 -05:00
2019-12-07 13:08:35 -05:00
2019-12-07 13:08:35 -05:00
2019-12-07 13:08:35 -05:00
2019-12-07 13:08:53 -05:00
2019-12-07 13:08:35 -05:00
2019-12-07 13:08:35 -05:00
2019-12-07 13:08:35 -05:00
2015-05-03 19:27:12 +02:00