Reviewed:  https://reviews.mahara.org/6410
Committed: 
https://git.mahara.org/mahara/mahara/commit/a26871c334891c60f2a2703d85ddd0c1895e044d
Submitter: Aaron Wells ([email protected])
Branch:    16.04_STABLE

commit a26871c334891c60f2a2703d85ddd0c1895e044d
Author: Robert Lyon <[email protected]>
Date:   Tue Apr 19 13:06:51 2016 +1200

Bug 1571910: Set placeholder cacheversion before upgrade

Allow get_config to supply a default so that system can handle misisng
config values during upgrade from older sites that are meant to be set
duing upgrade, eg 'cacheversion'

behatnotneeded - upgrade issue

Change-Id: Ieaea390d57c18f3bc3e0808026ec1e76636bcc15
Signed-off-by: Robert Lyon <[email protected]>
(cherry picked from commit d7c297f1c83ee153c1c496f091b70b819cab2a26)

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1571910

Title:
  Missing cacheversion on upgrade gives errors

Status in Mahara:
  Fix Committed
Status in Mahara 16.04 series:
  Fix Committed
Status in Mahara 16.10 series:
  Fix Committed

Bug description:
  When upgrading from old version that doesn't have cacheversion set we
  get this error

  [WAR] 21 (lib/htmlpurifier/HTMLPurifier/Config.php:901) Value for
  HTML.DefinitionRev is of invalid type, should be int invoked on line
  3598 in file /home/robertl/htdocs/mahara-
  devel/mahara/htdocs/lib/web.php

  It doesn't stop the upgrade from progressing, so I'll mark this bug as
  low priority, but could freak user out when upgrading their sites.

  It would be good to allow get_config() function to take a $default
  value option, similar to how param_alpha() works.

  This way we can set a default value before the upgrade sets the
  correct value

  So I'm thinking get_config('cacheversion', 0); would return value '0'
  rather than false so that htmlpurifier does not complain but still
  allows for the upgrade to set the cacheversion as expected.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1571910/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp

Reply via email to