-
-
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
Don't break when one remote share is down #19861
Don't break when one remote share is down #19861
Conversation
getFileInfo can also return false Signed-off-by: Joas Schilling <coding@schilljs.com>
server/apps/files_sharing/js/sharedfilelist.js Lines 308 to 318 in 445274c
Please consider to update the code here. Right now all those fields are expected. |
Sure we can add something like: $share['mimetype'] = 'httpd/unix-directory';
$share['mtime'] = 0;
$share['permissions'] = Constants::PERMISSION_READ | Constants::PERMISSION_DELETE;
$share['type'] = 'dir';
$share['file_id'] = 0; But the main issue stays. The info is wrong and deleting doesnt work either. Also I don't see a problem in my console/UI without that (apart from no mimetype icon being displayed). I think someone needs to have a proper look and handle unavailable shares in a much better fashion globally. For now getting rid of the broken part of the response is good enough for me. |
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.
looks sane
/backport to stable18 |
backport to stable18 in #19886 |
getFileInfo can also return false
Found while trying to improve on #14797