← Back to team overview

mahara-contributors team mailing list archive

[Bug 1503103] Re: When new accounts are created, default storage quota is not applied

 

I've been investigating this problem for a customer.

The issue appears to be that the default quota is correctly applied.
However, when user->commit() is called, it first calls
reload_background_fields(). As the userid is 0 at this point, the
specified fields ('active', 'deleted', ... 'quota', 'unread') are loaded
from the 'root' user record. This means that the user record will end up
with the 'quota' value from 'root' user, rather than the default that
was already correctly stored in memory.

I don't understand the 'reload_background_fields' operation quite enough
to be confident about this, but my proposed fix would be simply to do
nothing in the case where the userid is 0 - I don't think it makes sense
to load data from user 0 in the case where the user has yet to be
created.

-- 
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/1503103

Title:
  When new accounts are created, default storage quota is not applied

Status in Mahara:
  Confirmed
Status in Mahara 1.10 series:
  Confirmed
Status in Mahara 1.9 series:
  Won't Fix
Status in Mahara 15.04 series:
  Confirmed
Status in Mahara 15.10 series:
  Confirmed
Status in Mahara 16.04 series:
  Confirmed

Bug description:
  When new accounts are created, default storage quota is not applied.
  Our Default quota is 500MB. When new users log in, they get only 200MB. Their accounts immediately get created when they log in with their student/staff credentials.
  I can remedy this by going Administration > Institutions > Our Institution > Update user quotas > Submit.
  This then updates all users to the correct storage quota.

  Mahara 1.9.8 (upgrading to 15.04.0 very soon)

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


References