-
Notifications
You must be signed in to change notification settings - Fork 94
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
only return rich workspace when depth is 1 or greater #994
only return rich workspace when depth is 1 or greater #994
Conversation
@juliushaertl , please help to review |
Makes sense 👍 Mind to rebase on top of the latest master? @tobiasKaminsky FYI |
/backport to stable19 |
/backport to stable18 |
lib/DAV/WorkspacePlugin.php
Outdated
return $file->getContent(); | ||
} | ||
} catch (StorageNotAvailableException $e) { | ||
if ($propFind->getDepth() > 0){ |
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.
if ($propFind->getDepth() > 0){ | |
if ($propFind->getDepth() > 0) { |
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.
ok
lib/DAV/WorkspacePlugin.php
Outdated
|
||
} | ||
} | ||
return ""; |
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.
Please keep the rest as before, we use single quotes all over the place in Nextcloud.
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.
ok
Signed-off-by: dassio <[email protected]>
Summary
the android app folder request is like the following:
by default:
depth:1
and includerich-workspace
tag, this will result in nextcloud checking rich workspace for every subfolder within the requested folder, in this request it istest_pictures
.here is the folder structure:
in each of the folder, there could be hundreads of files, it take some time to find the README.txt file. multiply this time for each of the 22 folders, i always get a timeout.
since the rich workspace file is for current folder, i don't see the necissity to get all of this for each subfolder , in the brower, they get this specifically using
https://localhost/ocs/v2.php/apps/text/workspace?path=/Photos