-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Properly catch NoUserException during upload cleanup #20284
Conversation
@@ -66,6 +67,9 @@ protected function run($argument) { | |||
} catch (NotFoundException $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.
} catch (NotFoundException $e) { | |
} catch (NotFoundException|NoUserException $e) { |
Does the same, without the duplication :)
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.
Ah right, fixed 👍
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.
Despite my nitpick this looks good :)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
d424e0c
to
56aa8fd
Compare
/backport to stable18 |
/backport to stable17 |
/backport to stable16 |
backport to stable18 in #20334 |
The backport to stable17 failed. Please do this backport manually. |
The backport to stable16 failed. Please do this backport manually. |
Follow up to #19655
getUserFolder
might throw aNoUserException
if the job was scheduled before the user removal. This would cause the background job to never succee and causingBackends provided no user object
errors.The second commit adds proper annotations for the exceptions being thrown by
getUserFolder
.