Set user quota resets to default

In Owncloud 10.0.10 user quota for LDAP accounts resets itself to Default.

I believe this change caused the problem.

If you put back

} else {

instead of

		if ($quota === null) {

the set quota seems to stick.

I’m not sure if its safe to change it or if this completely fixes the problem.
Please someone look into it.

Steps to reproduce

  1. Set custom quota for LDAP account
  2. Login with that account
  3. The quota is reset to Default

( In LDAP -> Advanced -> Special Attributs, Quota Field and Quota Default are empty. )

Expected behaviour

Custom quota to stay

Actual behaviour

The quota is reset to Default

Server configuration

Operating system:
Centos 7

Web server:
Apache 2.4

MySQL 5.7

PHP version:

ownCloud version:

Updated from an older ownCloud or fresh install:
Updated from 10.0.8 or 10.0.9

This is a known problem. It occurs with OC instances after upgrade from OC 9 or OC 8 to OC10. The quota settings are now stored in oc_accounts. Before the change, they have been stored in oc_preferences.

Here is the new PR to fix this:


Thank you micbar for the link. I read the thread. I’m a newbie and wasn’t sure if I was completely understanding. It seems that if I’m using LDAP then I can’t set individual user quotas? It resets to default? Well, I’m having trouble with a user who asked for 80 GB quota. I set him to Unlimited and also default which appears to be Unlimited and he can only upload 6 GB or so. Not sure where to go next.