Skip to content

Conversation

@come-nc
Copy link
Contributor

@come-nc come-nc commented Jan 12, 2023

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

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]>
@come-nc come-nc self-assigned this Jan 12, 2023
@come-nc come-nc added bug 3. to review Waiting for reviews labels Jan 12, 2023
@come-nc come-nc added this to the Nextcloud 26 milestone Jan 12, 2023
@come-nc
Copy link
Contributor Author

come-nc commented Jan 12, 2023

/backport to stable25

@come-nc
Copy link
Contributor Author

come-nc commented Jan 12, 2023

/backport to stable24

@come-nc
Copy link
Contributor Author

come-nc commented Jan 12, 2023

/backport to stable23

@come-nc come-nc requested review from a team, ArtificialOwl, blizzz and icewind1991 and removed request for a team January 12, 2023 11:04
@come-nc come-nc mentioned this pull request Jan 12, 2023
4 tasks
self::USER_FIELD_QUOTA => $quota !== false ? $quota : 'none',
'used' => 0
];
} catch (\Exception $e) {
Copy link
Member

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 😨

Copy link
Contributor Author

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.

@come-nc come-nc requested review from PVince81 and artonge January 16, 2023 09:55
@come-nc come-nc merged commit 052f096 into master Jan 16, 2023
@come-nc come-nc deleted the fix/catch-exception-in-provisioning_api branch January 16, 2023 10:40
@come-nc come-nc added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jan 16, 2023
@blizzz
Copy link
Member

blizzz commented Jan 17, 2023

/backport to stable23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants