From b1deae72328d191fbe435537e17ca0d8bc151338 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Wed, 19 Nov 2025 14:32:12 +0100 Subject: [PATCH] fix(QuotaPlugin): Always check the quota before moving Signed-off-by: provokateurin --- apps/dav/lib/Connector/Sabre/QuotaPlugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/dav/lib/Connector/Sabre/QuotaPlugin.php b/apps/dav/lib/Connector/Sabre/QuotaPlugin.php index bbb378edc9b..1351bd7e474 100644 --- a/apps/dav/lib/Connector/Sabre/QuotaPlugin.php +++ b/apps/dav/lib/Connector/Sabre/QuotaPlugin.php @@ -9,11 +9,11 @@ namespace OCA\DAV\Connector\Sabre; use OC\Files\View; -use OCA\DAV\Upload\FutureFile; use OCA\DAV\Upload\UploadFolder; use OCP\Files\StorageNotAvailableException; use Sabre\DAV\Exception\InsufficientStorage; use Sabre\DAV\Exception\ServiceUnavailable; +use Sabre\DAV\IFile; use Sabre\DAV\INode; use Sabre\HTTP\RequestInterface; use Sabre\HTTP\ResponseInterface; @@ -138,7 +138,7 @@ class QuotaPlugin extends \Sabre\DAV\ServerPlugin { */ public function beforeMove(string $sourcePath, string $destinationPath): bool { $sourceNode = $this->server->tree->getNodeForPath($sourcePath); - if (!$sourceNode instanceof FutureFile) { + if (!$sourceNode instanceof IFile) { return true; }