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: