From d5db7bc1d2a85e4dc122d73d8ed88187c38c5f0c Mon Sep 17 00:00:00 2001 From: Camila Date: Fri, 2 Feb 2024 10:41:43 +0100 Subject: [PATCH] Update 403 error message. The user should get a more friendly warning when their desktop client version is not supported anymore by the server. See #nextcloud/desktop/issues/6273 Signed-off-by: Camila --- apps/dav/lib/Connector/Sabre/BlockLegacyClientPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dav/lib/Connector/Sabre/BlockLegacyClientPlugin.php b/apps/dav/lib/Connector/Sabre/BlockLegacyClientPlugin.php index eda2399a780f9..5d9431e108ffd 100644 --- a/apps/dav/lib/Connector/Sabre/BlockLegacyClientPlugin.php +++ b/apps/dav/lib/Connector/Sabre/BlockLegacyClientPlugin.php @@ -69,7 +69,7 @@ public function beforeHandler(RequestInterface $request) { preg_match(IRequest::USER_AGENT_CLIENT_DESKTOP, $userAgent, $versionMatches); if (isset($versionMatches[1]) && version_compare($versionMatches[1], $minimumSupportedDesktopVersion) === -1) { - throw new \Sabre\DAV\Exception\Forbidden('Unsupported client version.'); + throw new \Sabre\DAV\Exception\Forbidden('This client is unsupported by the server: upgrade to the minimum required version '.$minimumSupportedDesktopVersion); } } }