Don't break when one remote share is down#19861
Merged
nickvergessen merged 1 commit intomasterfrom Mar 11, 2020
Merged
Conversation
getFileInfo can also return false Signed-off-by: Joas Schilling <coding@schilljs.com>
Contributor
|
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. |
Member
Author
|
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. |
ChristophWurst
approved these changes
Mar 11, 2020
Member
Author
|
/backport to stable18 |
|
backport to stable18 in #19886 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
getFileInfo can also return false
Found while trying to improve on #14797