-
Notifications
You must be signed in to change notification settings - Fork 109
fix: catch all errors when getting rich workspace content #6243
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
Conversation
|
/backport to stable29 |
|
/backport to stable28 |
lib/DAV/WorkspacePlugin.php
Outdated
| $cachedContent = $file->getContent(); | ||
| $cache->set($cacheKey, $cachedContent, 3600); | ||
| } catch (GenericFileException|NotPermittedException|LockedException $e) { | ||
| } catch (\Exception $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.
nit: shall we log this, at least with debug level?
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.
I can make the changes
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.
Changed to still ignore file, permission and locking exception but log anything else as error
Signed-off-by: Robin Appelman <[email protected]> Signed-off-by: Christoph Wurst <[email protected]>
d3210f8 to
aadec5e
Compare
|
/backport to stable30 |
Don't let errors to load a single file become errors for loading the entire directory.