We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 047ba6d + 36e5584 commit eb6dc94Copy full SHA for eb6dc94
apps/provisioning_api/lib/Controller/AUserData.php
@@ -270,6 +270,18 @@ protected function fillStorageInfo(string $userId): array {
270
self::USER_FIELD_QUOTA => $quota !== false ? $quota : 'none',
271
'used' => 0
272
];
273
+ } catch (\Exception $e) {
274
+ \OC::$server->get(\Psr\Log\LoggerInterface::class)->error(
275
+ "Could not load storage info for {user}",
276
+ [
277
+ 'app' => 'provisioning_api',
278
+ 'user' => $userId,
279
+ 'exception' => $e,
280
+ ]
281
+ );
282
+ /* In case the Exception left things in a bad state */
283
+ \OC_Util::tearDownFS();
284
+ return [];
285
}
286
return $data;
287
0 commit comments