diff --git a/apps/dav/lib/Connector/Sabre/SharesPlugin.php b/apps/dav/lib/Connector/Sabre/SharesPlugin.php index 3b2e3ca3e8361..ce99fdc07bdfb 100644 --- a/apps/dav/lib/Connector/Sabre/SharesPlugin.php +++ b/apps/dav/lib/Connector/Sabre/SharesPlugin.php @@ -242,6 +242,13 @@ public function handleGetProperties( * For share creation we already ensure this in the share manager. */ public function validateMoveOrCopy(string $source, string $target): bool { + [$sourceParent, ] = \Sabre\Uri\split($source); + [$targetParent, ] = \Sabre\Uri\split($target); + if ($sourceParent === $targetParent) { + // this is a simple rename in the same folder, allow it + return true; + } + try { $targetNode = $this->tree->getNodeForPath($target); } catch (NotFound) {