diff --git a/apps/dav/lib/Connector/Sabre/SharesPlugin.php b/apps/dav/lib/Connector/Sabre/SharesPlugin.php index c3b1e2b1a32c7..10b8c99e42f68 100644 --- a/apps/dav/lib/Connector/Sabre/SharesPlugin.php +++ b/apps/dav/lib/Connector/Sabre/SharesPlugin.php @@ -252,6 +252,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) {