mirror of
https://github.com/nextcloud/server.git
synced 2026-04-25 08:08:33 -04:00
Merge pull request #36155 from nextcloud/backport/36115/stable25
[stable25] Catch Exceptions when loading storage data of users
This commit is contained in:
commit
e056dd8ba9
1 changed files with 12 additions and 0 deletions
|
|
@ -267,6 +267,18 @@ abstract class AUserData extends OCSController {
|
|||
self::USER_FIELD_QUOTA => $quota !== false ? $quota : 'none',
|
||||
'used' => 0
|
||||
];
|
||||
} catch (\Exception $e) {
|
||||
\OC::$server->get(\Psr\Log\LoggerInterface::class)->error(
|
||||
"Could not load storage info for {user}",
|
||||
[
|
||||
'app' => 'provisioning_api',
|
||||
'user' => $userId,
|
||||
'exception' => $e,
|
||||
]
|
||||
);
|
||||
/* In case the Exception left things in a bad state */
|
||||
\OC_Util::tearDownFS();
|
||||
return [];
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue