Skip to content
Merged

Fix/dav #2608

Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
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 <[email protected]>
  • Loading branch information
CarlSchwan authored and max-nextcloud committed Jul 6, 2022
commit 4f5a37dcbddaf79ae7416860f9c9334b17936175
2 changes: 1 addition & 1 deletion lib/DAV/WorkspacePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function propFind(PropFind $propFind, INode $node) {
}

// 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());
Expand Down