-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Catch Exceptions when loading storage data of users #36115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This avoids having the whole userlist crashing because a user external storage fails to load. With this change only the problematic user storage/quota information will be empty. Signed-off-by: Côme Chilliet <[email protected]>
|
/backport to stable25 |
|
/backport to stable24 |
|
/backport to stable23 |
| self::USER_FIELD_QUOTA => $quota !== false ? $quota : 'none', | ||
| 'used' => 0 | ||
| ]; | ||
| } catch (\Exception $e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's a broad catch 😨
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On purpose, I do not want exceptions there to crash the whole user list because one user cannot have its quota shown.
Signed-off-by: Côme Chilliet <[email protected]>
|
/backport to stable23 |
Signed-off-by: Côme Chilliet [email protected]
Summary
This avoids having the whole userlist crashing because a user external
storage fails to load. With this change only the problematic user
storage/quota information will be empty.
Checklist