From 7acd72279bf4f6cf32395a3117d271056a351875 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 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) {