From 7c4b6017930bc3c42096487db972dad2c2d62533 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 29 Apr 2026 19:15:26 +0200 Subject: [PATCH] fix: translate NotEnoughSpaceException to dav exception Signed-off-by: Robin Appelman --- apps/dav/lib/Connector/Sabre/File.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/dav/lib/Connector/Sabre/File.php b/apps/dav/lib/Connector/Sabre/File.php index 853390d9c64..7f5e049c329 100644 --- a/apps/dav/lib/Connector/Sabre/File.php +++ b/apps/dav/lib/Connector/Sabre/File.php @@ -621,6 +621,9 @@ class File extends Node implements IFile { if ($e instanceof NotFoundException) { throw new NotFound($this->l10n->t('File not found: %1$s', [$e->getMessage()]), 0, $e); } + if ($e instanceof Files\NotEnoughSpaceException) { + throw new EntityTooLarge($this->l10n->t('Insufficient space'), 0, $e); + } throw new \Sabre\DAV\Exception($e->getMessage(), 0, $e); }