Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-05-19 12:26:18 +0300
committerGitHub <noreply@github.com>2021-05-19 12:26:18 +0300
commit4a21ca30b95dc15007b2a3c1bb6a4f11d6c5ec27 (patch)
treed6deeac02711038260cebc8d70597dca888da984
parent49eabe8dd5e5ba17fdd81abe4d1acb1113d65bd1 (diff)
parentbe562a41329fccb7c6bdc8d1a5e2e1e187a10869 (diff)
Merge pull request #1590 from nextcloud/bugfix/1507v22.0.0beta1
Only return workspace property for top node in a propfind request
-rw-r--r--lib/DAV/WorkspacePlugin.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/DAV/WorkspacePlugin.php b/lib/DAV/WorkspacePlugin.php
index 401b76084..a7c7e896b 100644
--- a/lib/DAV/WorkspacePlugin.php
+++ b/lib/DAV/WorkspacePlugin.php
@@ -93,7 +93,9 @@ class WorkspacePlugin extends ServerPlugin {
if (!$workspaceAvailable || !$workspaceEnabled) {
return;
}
- if ($propFind->getDepth() > 0) {
+
+ // Only return the property for the parent node and ignore it for further in depth nodes
+ if ($propFind->getDepth() === $this->server->getHTTPDepth()) {
$propFind->handle(self::WORKSPACE_PROPERTY, function () use ($node) {
/** @var Folder[] $nodes */
$nodes = $this->rootFolder->getUserFolder($this->userId)->getById($node->getId());