mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 07:12:26 +02:00
Merge remote-tracking branch 'origin/support/3.2' into develop
This commit is contained in:
@@ -1579,8 +1579,6 @@ class CMDBSource
|
|||||||
if (static::GetDBVendor() === static::ENUM_DB_VENDOR_MYSQL) {
|
if (static::GetDBVendor() === static::ENUM_DB_VENDOR_MYSQL) {
|
||||||
//Mysql 5.7.0 and upper deprecated --ssl and uses --ssl-mode instead
|
//Mysql 5.7.0 and upper deprecated --ssl and uses --ssl-mode instead
|
||||||
return version_compare(static::GetDBVersion(), '5.7.11', '>=');
|
return version_compare(static::GetDBVersion(), '5.7.11', '>=');
|
||||||
} elseif (static::GetDBVendor() === static::ENUM_DB_VENDOR_MARIADB) {
|
|
||||||
return version_compare(static::GetDBVersion(), '10.2.6', '>=');
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -511,7 +511,7 @@ EOF;
|
|||||||
{
|
{
|
||||||
$bDbTlsEnabled = $oConfig->Get('db_tls.enabled');
|
$bDbTlsEnabled = $oConfig->Get('db_tls.enabled');
|
||||||
if (!$bDbTlsEnabled) {
|
if (!$bDbTlsEnabled) {
|
||||||
return CMDBSource::IsSslModeDBVersion() ? ' --skip-ssl' : '';
|
return '';
|
||||||
}
|
}
|
||||||
$sTlsOptions = '';
|
$sTlsOptions = '';
|
||||||
// Mysql 5.7.11 and upper deprecated --ssl and uses --ssl-mode instead
|
// Mysql 5.7.11 and upper deprecated --ssl and uses --ssl-mode instead
|
||||||
|
|||||||
@@ -45,11 +45,7 @@ class DBBackupTest extends ItopTestCase
|
|||||||
$oConfigToTest->Set('db_tls.enabled', false);
|
$oConfigToTest->Set('db_tls.enabled', false);
|
||||||
$sCliArgsNoTls = DBBackup::GetMysqlCliTlsOptions($oConfigToTest);
|
$sCliArgsNoTls = DBBackup::GetMysqlCliTlsOptions($oConfigToTest);
|
||||||
|
|
||||||
if (CMDBSource::IsSslModeDBVersion()) {
|
$this->assertEmpty($sCliArgsNoTls);
|
||||||
$this->assertEquals(' --skip-ssl', $sCliArgsNoTls);
|
|
||||||
} else {
|
|
||||||
$this->assertEmpty($sCliArgsNoTls);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user