-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Do not only catch Exceptions but any Throwable during rmt share delete #21181
Conversation
When a remote share is deleted, we notify the remove instance. This may trigger various error conditions, which we want to catch in order to avoid undeletable shares. The try-catch, however, did only capture exceptions, so things like TypeErrors were not caught and caused the process to fail hard. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
/backport to stable19 |
/backport to stable18 |
/backport to stable17 |
Are https://drone.nextcloud.com/nextcloud/server/29418/36/3 and https://drone.nextcloud.com/nextcloud/server/29418/37/3 possibly related to this change? I can't tell. |
As far as I know they come from #16035. |
When a remote share is deleted, we notify the remote instance. This may
trigger various error conditions, which we want to catch in order to
avoid undeletable shares. The try-catch, however, did only capture
exceptions, so things like TypeErrors were not caught and caused the
process to fail hard.