Pierre Goiffon
6995a3c641
N°6889 backup mysqldump call : restore possibility to connect using socket protocol ( #591 )
...
With previous fix (N°6123) we forced to use the tcp protocol each time. This was blocking for users wanting to connect using the socket protocol on localhost.
Now for localhost we will :
- send both port and protocol arguments if the `db_host` config parameter does contain a port
- don't send any of the port or protocol arguments if `db_host` doesn't contain a port
2023-12-20 15:19:50 +01:00
Eric Espie
78396d8e4a
6548 - [ER] Hide DBHost and DBUser in log
2023-07-10 17:37:27 +02:00
Stephen Abello
9afc22bd8f
N°6123 - Add tests and comments
2023-07-07 09:29:15 +02:00
Stephen Abello
246e4a9f50
N°6123 - Fix warnings when launching a backup on MariaDB > v10.6.1 with localhost dbhost
2023-07-06 09:28:01 +02:00
Pierre Goiffon
426f275c03
💡 Add additional phpdoc to \DBBackup::GetMysqlCliTlsOptions
2022-01-12 11:21:21 +01:00
Pierre Goiffon
0ee6c60e94
✅ Fix DBBackupTest (again :/)
...
Was working on Windows but not on Linux...
2022-01-12 09:12:04 +01:00
Pierre Goiffon
a663e9fded
✅ Fix DBBackupTest
...
DB connection dependency was added in a222ead4 (N°2336) in \DBBackup::GetMysqlCliTlsOptions but test wasn't updated accordingly :/^
The test wasn't ran on Jenkins until b11bf308 , so we saw the regression only yesterday :(
This is now fixed ! 🥳
2022-01-12 09:00:26 +01:00
Pierre Goiffon
b3bf516b20
💡 Fix PHPDoc for \DBBackup::GetMysqlCliTlsOptions
2022-01-12 08:24:28 +01:00
Pierre Goiffon
04fc58b55c
📝 Some @since annotations were missing complete version (ex 2.5 instead of 2.5.0)
2020-02-21 18:05:30 +01:00
Stephen Abello
130734bec7
Merge branch 'master' into develop
...
# Conflicts:
# setup/backup.class.inc.php
2019-07-25 17:18:49 +02:00
Stephen Abello
d7fad4b646
Merge branch 'support/2.6.2'
2019-07-25 17:07:49 +02:00
Stephen Abello
f4d538ef6c
N°2410 Fix regression in mysqldump call introduced in 2.6.2
2019-07-24 16:02:20 +02:00
Pierre Goiffon
dc868b16ab
N°2366 remove DBBackup::CreateZip
...
* remove method and its dependencies
* create \utils::GetFileMimeType
* in \DBBackup::DownloadBackup mime type isn't hardcoded anymore
2019-07-19 15:51:05 +02:00
Pierre Goiffon
073b1cd303
N°2018 Backup : fix version check for MySQL8
...
Now uses \CMDBSource::GetDBVersion instead of mysqldump -V
2019-07-16 18:05:31 +02:00
Pierre Goiffon
e712791f43
Merge remote-tracking branch 'origin/master' into develop
2019-07-16 17:45:24 +02:00
Pierre Goiffon
fefd9aae95
N°2399 backup : throw exception and log error if cannot create archive
...
(before error was silently ignored)
2019-07-16 17:44:56 +02:00
Pierre Goiffon
6c81163d20
Merge remote-tracking branch 'origin/master' into develop
2019-07-01 17:30:21 +02:00
Stephen Abello
f948d6e026
N°2336: Set right parameter for --ssl-mode
2019-06-21 14:37:48 +02:00
Stephen Abello
a222ead43c
N°2336: Use --ssl-mode instead of --ssl with MySQL >= 5.7.0
2019-06-21 13:59:36 +02:00
Eric
e68340273b
Merge branch 'master' into develop
...
# Conflicts:
# core/config.class.inc.php
# core/htmlsanitizer.class.inc.php
# css/css-variables.scss
# css/light-grey.css
# datamodels/2.x/version.xml
# dictionaries/zh_cn.dictionary.itop.ui.php
# synchro/synchrodatasource.class.inc.php
2019-06-20 16:11:38 +02:00
Eric
519aaadd9a
N°2157 - Fix backup manual warning
2019-06-13 09:44:40 +02:00
Pierre Goiffon
e59e62fb1b
Merge remote-tracking branch 'origin/master' into develop
...
# Conflicts:
# core/expressioncache.class.inc.php
2019-02-21 17:24:37 +01:00
Pierre Goiffon
1f7923beae
Merge remote-tracking branch 'origin/support/2.5'
...
# Conflicts:
# datamodels/2.x/itop-backup/module.itop-backup.php
# setup/setup.js
# setup/wizardsteps.class.inc.php
2019-02-21 17:18:29 +01:00
Pierre Goiffon
a35690d13c
📌 Identify & remove Combodo code from ArchiveTar lib
2019-02-21 17:07:31 +01:00
Pierre Goiffon
02617e8976
🔊 itop-backup : add some more logs
2019-02-19 12:21:53 +01:00
Pierre Goiffon
505aad1e89
Merge branch 'support/2.5'
...
# Conflicts:
# datamodels/2.x/itop-hub-connector/zh_cn.dict.itop-hub-connector.php
# lib/tcpdf/CHANGELOG.TXT
# lib/tcpdf/composer.json
# lib/tcpdf/include/tcpdf_fonts.php
# lib/tcpdf/include/tcpdf_images.php
# lib/tcpdf/include/tcpdf_static.php
# lib/tcpdf/tcpdf.php
2019-01-28 16:04:19 +01:00
Stephen Abello
ed3fd851f1
N°1933: Security hardening
2019-01-14 11:57:16 +01:00
Pierre Goiffon
a4055c4a74
Change comments to use same tickets ref syntax
2018-11-06 17:36:14 +01:00
Eric Espié
22df5d09fb
Retrofit from trunk
...
N°1595 - Setup : Blocking error on backup failure [from revision 6010]
SVN:2.5[6023]
2018-08-28 12:14:56 +00:00
Eric Espié
ea9b7eddde
N°1595 - Setup : Blocking error on backup failure
...
SVN:trunk[6010]
2018-08-22 10:16:35 +00:00
Eric Espié
2706ebf638
Merged from 2.4
...
N°1488 - restore failed on production-modules [from revision 5827]
SVN:trunk[5828]
2018-06-05 14:14:37 +00:00
Stephen Abello
cb2c172483
N°1173 : mysqldump now correctly use 'mysql_bindir' parameter on setup & move to prod's backups
...
SVN:trunk[5767]
2018-05-03 15:00:13 +00:00
Eric Espié
5b83f2a554
Fix setup (support for distrib > 9.x.x)
...
SVN:trunk[5700]
2018-04-20 09:40:27 +00:00
Pierre Goiffon
aa8072118d
N°1260 remove db_tls.verify_server_cert : the server cert verification is now based on the TLS CA parameter value
...
SVN:trunk[5683]
2018-04-18 07:26:11 +00:00
Pierre Goiffon
f07bbfa174
N°1260 MySQL TLS connection : change parameters to only enable checkbox + CA (remove client key, client cert, cappath, cipher)
...
SVN:trunk[5682]
2018-04-18 06:57:38 +00:00
Pierre Goiffon
9d5ab75dbd
Backup/restore : apply COmbodo formatting
...
SVN:trunk[5667]
2018-04-13 14:49:27 +00:00
Pierre Goiffon
b219161011
N°1001 switch DB charset from utf8 to utf8mb4 to allow characters outside of the BMP
...
* use centralized constants instead of literal values in code
* remove config parameters 'db_character_set' and 'db_collation'
* always fix charset when creating/altering column
* backup : use utf8mb4 only for mysqldump >= 5.5.33 (was introduced in 5.5.3 but only available in 5.5.33 for programs)
SVN:trunk[5443]
2018-03-16 09:59:16 +00:00
Pierre Goiffon
d96015f2c1
N°1260 new db_tls.verify_server_cert option to force server certificates check
...
SVN:trunk[5381]
2018-03-05 15:50:18 +00:00
Pierre Goiffon
519093dceb
N°1260 fix backup classes to correctly uses DB parameters including TLS
...
* backup : add missing PHPDoc
* backup : use a config object instead of each parameter attribute
* CMDBSource::InitServerAndPort : remove static attribute dependency, change visibility
* setup : generate a config instance to use in backup
* backup : add TLS params if needed to the mysqldump call
SVN:trunk[5375]
2018-02-28 15:12:57 +00:00
Pierre Goiffon
c715b9488a
N°1260 MySQL connection : allow to use p: host prefix (persistent connection, see http://php.net/manual/en/mysqli.persistconns.php )
...
SVN:trunk[5316]
2018-02-08 14:22:27 +00:00
Pierre Goiffon
ca28eeb596
N°1260 rename db_ssl* vars to db_tls (cause SSL is an old protocol and MySQL uses TLS)
...
Keep options label with SSL, to keep them aligned with the labels used in MySQL products and documentation
SVN:trunk[5314]
2018-02-08 14:22:14 +00:00
Pierre Goiffon
f51eb96c69
N°1260 MySQL TLS connection : do not use persistent connection in Mutex
...
SVN:trunk[5313]
2018-02-08 14:22:05 +00:00
Pierre Goiffon
b032299b05
N°1260 MySQL TLS connection : exception if the opened connection is not in TLS whereas TLS parameters were used to open it
...
SVN:trunk[5312]
2018-02-08 14:21:58 +00:00
Pierre Goiffon
3375629d06
N°1260 MySQL TLS connection : add capath config for mysqli::ssl_set argument
...
SVN:trunk[5310]
2018-02-08 14:21:40 +00:00
Pierre Goiffon
37232bc222
N°1260 every classes creating a mysqli instance now use a dedicated method in CMDBSource
...
SVN:trunk[5309]
2018-02-08 14:21:33 +00:00
Pierre Goiffon
d2f0deec9c
N°1260 Config : migrate DB* variables to the Get() model, create CMDBSource::InitFromConfig
...
SVN:trunk[5308]
2018-02-08 14:21:25 +00:00
Eric Espié
6477e2e1bb
N°1188 - Backup needs too much disk space
...
SVN:trunk[5144]
2017-11-30 08:52:44 +00:00
Eric Espié
85b31701f4
N°1156 - Manual backup can be very long
...
* The database is saved in last position to avoid overhead when generating the archive file
SVN:trunk[5130]
2017-11-16 14:00:41 +00:00
Guillaume Lajarige
9cf42f6cc8
N°1002 Backup: '.' character in iTop instance path was causing a crash when trying to -temporary- replace them in the backup filename (due to compression lib limitations).
...
SVN:trunk[4883]
2017-08-29 14:30:46 +00:00
Romain Quetiez
e31fa066fc
N.612 Backup files could not exceed 4Gb (technology limitation). The fix consists in archiving the backup as a tar.gz instead of a zip. As a consequence, installing iTop now requires TWO additional PHP modules: phar/zlib. The zip module remains mandatory because it is used in other places. The restore utility accepts both legacy zip files and brand new tar.gz files. DBBackup::CreateZip is deprecated in favor of DBBackup::CreateCompressedBackup. DBRestore::RestoreFromZip is deprecated in favor of DBRestore::RestoreFromCompressedFile (which autodetects the format for backward compatibility).
...
SVN:trunk[4803]
2017-07-06 15:26:03 +00:00