Pierre Goiffon
6042e7f74d
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
...
# Conflicts:
# tests/php-unit-tests/post-build-integration-tests/SetupCssIntegrityChecklistTest.php
# tests/php-unit-tests/unitary-tests/core/CMDBSource/CMDBSourceTest.php
2024-01-03 10:43:41 +01:00
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
6432678de9
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
...
# Conflicts:
# application/cmdbabstract.class.inc.php
# application/utils.inc.php
# bootstrap.inc.php
# composer.json
# core/MyHelpers.class.inc.php
# core/cmdbsource.class.inc.php
# core/config.class.inc.php
# core/dbobject.class.php
# core/kpi.class.inc.php
# core/metamodel.class.php
# lib/composer/autoload_classmap.php
# lib/composer/autoload_real.php
# lib/composer/autoload_static.php
2023-07-18 14:36:58 +02: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
Pierre Goiffon
a010239efb
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
2023-07-06 15:48:42 +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
135ddbf37d
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
...
# Conflicts:
# test/phpunit.xml.dist
2022-01-13 13:36:09 +01:00
Pierre Goiffon
426f275c03
💡 Add additional phpdoc to \DBBackup::GetMysqlCliTlsOptions
2022-01-12 11:21:21 +01:00
Pierre Goiffon
b55ba2ac7f
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
...
# Conflicts:
# core/cmdbsource.class.inc.php
# core/log.class.inc.php
# test/setup/iTopDesignFormat/iTopDesignFormatTest.php
2022-01-12 09:56:16 +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
Eric Espie
a4e43d3f17
N°4225 - Remove Read-only mode for backup
2021-09-09 14:25:19 +02:00
Eric Espie
8e0ae67803
N°4227 / N°4225 - Enhance SetupUtils interface
2021-09-06 17:53:46 +02:00
odain
9e1e5a8a47
N°4227 - Manual iTop restore - protect any restore from cron or db updates and release readonly mode afterward only if restore set it itself
2021-08-12 16:25:50 +02:00
odain
2c026fa891
N°4225 - Protect manual backups from cron (and vice versa) - protect any backup from cron/db updates and release readonly mode only when backup set it itself
2021-08-12 16:25:50 +02:00
Molkobain
8dd96ea636
Copyright year bump
2021-03-15 09:29:45 +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