mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
ConnectionValidator: change the minimum server version
Forbit connection with server older than 7.0. These server did not have permission. Also warn for anything older than 9.1. 9.0 is end of life according to https://github.com/owncloud/core/wiki/Maintenance-and-Release-Schedule
This commit is contained in:
parent
302c60fe15
commit
4a19a8d644
@ -275,15 +275,15 @@ bool ConnectionValidator::setAndCheckServerVersion(const QString &version)
|
||||
qCInfo(lcConnectionValidator) << _account->url() << "has server version" << version;
|
||||
_account->setServerVersion(version);
|
||||
|
||||
// We cannot deal with servers < 5.0.0
|
||||
// We cannot deal with servers < 7.0.0
|
||||
if (_account->serverVersionInt()
|
||||
&& _account->serverVersionInt() < Account::makeServerVersion(5, 0, 0)) {
|
||||
&& _account->serverVersionInt() < Account::makeServerVersion(7, 0, 0)) {
|
||||
_errors.append(tr("The configured server for this client is too old"));
|
||||
_errors.append(tr("Please update to the latest server and restart the client."));
|
||||
reportResult(ServerVersionMismatch);
|
||||
return false;
|
||||
}
|
||||
// We attempt to work with servers >= 5.0.0 but warn users.
|
||||
// We attempt to work with servers >= 7.0.0 but warn users.
|
||||
// Check usages of Account::serverVersionUnsupported() for details.
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 9, 0)
|
||||
|
||||
@ -463,7 +463,7 @@ bool Account::serverVersionUnsupported() const
|
||||
// not detected yet, assume it is fine.
|
||||
return false;
|
||||
}
|
||||
return serverVersionInt() < makeServerVersion(7, 0, 0);
|
||||
return serverVersionInt() < makeServerVersion(9, 1, 0);
|
||||
}
|
||||
|
||||
void Account::setServerVersion(const QString &version)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user