From ba8b88e8a53708eb686fd5de4a452f66163d09da Mon Sep 17 00:00:00 2001 From: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com> Date: Wed, 23 Sep 2026 11:19:44 +0200 Subject: [PATCH] fix: never block simple renames in SharesPlugin Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com> --- apps/dav/lib/Connector/Sabre/SharesPlugin.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/dav/lib/Connector/Sabre/SharesPlugin.php b/apps/dav/lib/Connector/Sabre/SharesPlugin.php index cb9260d6a6d52..8b8843c6c7d4e 100644 --- a/apps/dav/lib/Connector/Sabre/SharesPlugin.php +++ b/apps/dav/lib/Connector/Sabre/SharesPlugin.php @@ -243,6 +243,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) {