From 4f5a37dcbddaf79ae7416860f9c9334b17936175 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Tue, 21 Jun 2022 13:33:56 +0200 Subject: [PATCH] Assume that the default depth is 1 in DAV Otherwise if the Depth header is ommited, the workspace information won't be display at all. Signed-off-by: Carl Schwan --- lib/DAV/WorkspacePlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/DAV/WorkspacePlugin.php b/lib/DAV/WorkspacePlugin.php index 764aa1f36..db5d136cd 100644 --- a/lib/DAV/WorkspacePlugin.php +++ b/lib/DAV/WorkspacePlugin.php @@ -96,7 +96,7 @@ class WorkspacePlugin extends ServerPlugin { } // Only return the property for the parent node and ignore it for further in depth nodes - if ($propFind->getDepth() === $this->server->getHTTPDepth()) { + if ($propFind->getDepth() === $this->server->getHTTPDepth(1)) { $propFind->handle(self::WORKSPACE_PROPERTY, function () use ($node) { /** @var Folder[] $nodes */ $nodes = $this->rootFolder->getUserFolder($this->userId)->getById($node->getId());