Merge pull request #35425 from nextcloud/bumpMinimumDesktopClientForWebdav

minimum desktop client that is supported is 2.3.0
pull/35107/head
Simon L 2022-11-28 15:34:32 +07:00 committed by GitHub
commit cd7cec587e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 15 deletions

@ -64,7 +64,7 @@ class BlockLegacyClientPlugin extends ServerPlugin {
return; return;
} }
$minimumSupportedDesktopVersion = $this->config->getSystemValue('minimum.supported.desktop.version', '2.0.0'); $minimumSupportedDesktopVersion = $this->config->getSystemValue('minimum.supported.desktop.version', '2.3.0');
// Match on the mirall version which is in scheme "Mozilla/5.0 (%1) mirall/%2" or // Match on the mirall version which is in scheme "Mozilla/5.0 (%1) mirall/%2" or
// "mirall/%1" for older releases // "mirall/%1" for older releases

@ -82,7 +82,7 @@ class BlockLegacyClientPluginTest extends TestCase {
$this->config $this->config
->expects($this->once()) ->expects($this->once())
->method('getSystemValue') ->method('getSystemValue')
->with('minimum.supported.desktop.version', '2.0.0') ->with('minimum.supported.desktop.version', '2.3.0')
->willReturn('1.7.0'); ->willReturn('1.7.0');
$this->blockLegacyClientVersionPlugin->beforeHandler($request); $this->blockLegacyClientVersionPlugin->beforeHandler($request);
@ -117,7 +117,7 @@ class BlockLegacyClientPluginTest extends TestCase {
$this->config $this->config
->expects($this->once()) ->expects($this->once())
->method('getSystemValue') ->method('getSystemValue')
->with('minimum.supported.desktop.version', '2.0.0') ->with('minimum.supported.desktop.version', '2.3.0')
->willReturn('1.7.0'); ->willReturn('1.7.0');
$this->blockLegacyClientVersionPlugin->beforeHandler($request); $this->blockLegacyClientVersionPlugin->beforeHandler($request);

@ -1910,9 +1910,9 @@ $CONFIG = [
* client may not function as expected, and could lead to permanent data loss for * client may not function as expected, and could lead to permanent data loss for
* clients or other unexpected results. * clients or other unexpected results.
* *
* Defaults to ``2.0.0`` * Defaults to ``2.3.0``
*/ */
'minimum.supported.desktop.version' => '2.0.0', 'minimum.supported.desktop.version' => '2.3.0',
/** /**
* Option to allow local storage to contain symlinks. * Option to allow local storage to contain symlinks.