From c6e82e63fc9a6130b52dcbc421751cc8579304ca Mon Sep 17 00:00:00 2001 From: Jyrki Gadinger Date: Wed, 21 Jan 2026 14:08:48 +0100 Subject: [PATCH 1/2] fix: use direct download urls for win32 clients 4.0.4 and 4.0.5 Workaround for nextcloud/desktop#9347, this should enable Windows clients 4.0.4 and 4.0.5 to download the update installer again. Signed-off-by: Jyrki Gadinger --- config/config.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/config.php b/config/config.php index 04b38bb..fdde603 100644 --- a/config/config.php +++ b/config/config.php @@ -86,6 +86,11 @@ $enterpriseVersionString = 'Nextcloud Client ' . $enterpriseVersion; $enterpriseUrl = 'https://github.com/nextcloud-releases/desktop/releases/download/v' . $enterpriseVersion . '/'; +// workaround for https://github.com/nextcloud/desktop/issues/9347 +// Win32 4.0.4 and 4.0.5 do not follow HTTP redirects, which fails the download of updates +if ($platform == "win32" && (version_compare($version, '4.0.4', '>=') && version_compare($version, '4.0.6', '<'))) { + $stableUrl = 'https://download.nextcloud.com/desktop/releases/Windows/'; +} /** * Associative array of OEM => OS => version From dea89c2d0136c6dfaaf1dc7664b4a7d4d123688d Mon Sep 17 00:00:00 2001 From: Jyrki Gadinger Date: Thu, 22 Jan 2026 10:59:03 +0100 Subject: [PATCH 2/2] fix: only serve updateinfo to ~20% of requests from win32 4.0.4/4.0.5 Signed-off-by: Jyrki Gadinger --- config/config.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/config.php b/config/config.php index fdde603..0707a40 100644 --- a/config/config.php +++ b/config/config.php @@ -90,6 +90,10 @@ // Win32 4.0.4 and 4.0.5 do not follow HTTP redirects, which fails the download of updates if ($platform == "win32" && (version_compare($version, '4.0.4', '>=') && version_compare($version, '4.0.6', '<'))) { $stableUrl = 'https://download.nextcloud.com/desktop/releases/Windows/'; + if (rand(0, 10) >= 2) { + // only allow ~2 out of 10 requests receive an update to not overload the download server + $stableVersion = '4.0.4'; + } } /**