← Back to team overview

mahara-contributors team mailing list archive

[Bug 1950199] Re: SimpleSamlphp metadata refresh causing cron problems

 

** Changed in: mahara/21.10
       Status: Confirmed => Fix Committed

** Changed in: mahara/21.04
       Status: Confirmed => Fix Committed

** Changed in: mahara/20.10
       Status: Confirmed => Fix Committed

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: mahara-contributors
https://bugs.launchpad.net/bugs/1950199

Title:
  SimpleSamlphp metadata refresh causing cron problems

Status in Mahara:
  Fix Committed
Status in Mahara 20.10 series:
  Fix Committed
Status in Mahara 21.04 series:
  Fix Committed
Status in Mahara 21.10 series:
  Fix Committed
Status in Mahara 22.04 series:
  Fix Committed

Bug description:
  When we have:
  1) a site has a timezone / country selected
  2) a site that has SAML installed
  3) an institution set up with a SAML auth instance
  4) the SAML auth instance has 'Metadata URL for auto-refresh' set to a valid value

  The timezone gets changed because of the getTime() method in the
  htdocs/auth/saml/extlib/simplesamlphp/modules/metarefresh/lib/MetaLoader.php
  file setting the timezone to UTC.

  This means any cron job happening after the
  PluginAuthSaml::auth_saml_refresh_cron one will be using the wrong
  'time' to compare to and so some cron jobs won't run when they should.

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



References