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