odain
890a2568c8
N°8796 - Add PHP code style validation in iTop and extensions - format whole code base
2025-11-07 15:39:53 +01:00
Molkobain
ad36066126
📝 Copyright year bump
2024-05-06 18:35:31 +02:00
Pierre Goiffon
797aae58e3
Merge remote-tracking branch 'origin/support/3.0' into support/3.1
2023-12-08 17:21:01 +01:00
Pierre Goiffon
f63f3bb547
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
2023-12-08 17:20:48 +01:00
Pierre Goiffon
d5449cca42
💡 iTopMutex: add link to mysql doc
2023-12-08 17:20:37 +01:00
Eric Espie
9c37d5c23e
Merge remote-tracking branch 'origin/support/3.0' into support/3.1
...
# Conflicts:
# application/applicationextension.inc.php
# application/cmdbabstract.class.inc.php
# core/dbobject.class.php
# core/kpi.class.inc.php
# core/metamodel.class.php
# lib/composer/autoload_classmap.php
# lib/composer/autoload_static.php
# tests/php-unit-tests/unitary-tests/setup/DBBackupTest.php
2023-07-19 09:26:46 +02: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
Molkobain
c767ebe989
📝 Copyright year bump
2023-03-17 18:28:47 +01:00
Pierre Goiffon
5db8bd06ba
Merge remote-tracking branch 'origin/support/2.7' into develop
...
# Conflicts:
# core/cmdbsource.class.inc.php
# core/coreexception.class.inc.php
# core/log.class.inc.php
2021-06-21 16:24:27 +02:00
Denis
0d40235791
🗃️ N°3968 Fix mutex being silently released after connection timeout ( #209 )
...
Mutex are using their own DB connection
Because the `wait_timeout` isn't specified when opening the connection, it could be closed before we released the lock : if so the lock is silently released !
We are now setting this variable directly when opening the connection to avoid such case (setting 86400s, so 1 day : this should be enough !)
2021-06-21 12:33:15 +02:00
Molkobain
8dd96ea636
Copyright year bump
2021-03-15 09:29:45 +01:00
bruno DA SILVA
0473269132
n°1617 - iTop Fence
...
- iTop Fence now lock user fetch/creation per login to prevent duplicates
- iTop now provide a mean to create safe lock when used untrusted strings
- better log message & function names
- reduced cyclomatic complexity
(thanks @piRGoif)
2019-11-28 17:03:31 +01:00
Thomas Casteleyn
2858d13fd5
🐛 Fix default usage of iTopMutex when TLS is enabled
...
See R-021467
2019-04-29 11:18:54 +02: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
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
3b3f4044cb
N°1260 Mutex : fix merge error in mutex name init
...
SVN:trunk[5369]
2018-02-26 15:16:33 +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
5a2576bc29
N°1260 MySQL TLS connection : add options in setup
...
SVN:trunk[5311]
2018-02-08 14:21:51 +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
Pierre Goiffon
08d9d58894
N°1260 MySQL TLS connection : apply Hardis patch (many thanks !)
...
SVN:trunk[5306]
2018-02-08 14:20:58 +00:00
Pierre Goiffon
6b9c038b31
Mutex : add some comments
...
SVN:trunk[5141]
2017-11-27 17:00:03 +00:00
Eric Espié
b401c65684
N°1163 - GET_LOCK 64 characters limitation in MySQL
...
SVN:trunk[5135]
2017-11-21 12:14:20 +00:00
Romain Quetiez
8451ffdfb4
Regression introduced with the implementation of obsolescence: first install not working (Access denied for user ''@localhost)
...
SVN:trunk[4771]
2017-06-27 13:58:38 +00:00
Denis Flaven
61e2f97d6c
#1150 : Spurious message "A restore is running..." - FIXED !
...
SVN:trunk[3864]
2016-01-20 15:56:09 +00:00
Romain Quetiez
8b45928d11
Instrumented the code to help in solving the "restore runing" issue. Completion of commits [3733] znd [3595] = issue an exception if something is going wrong within iTopMutex::TryLock (exceptions are correctly handled in the various places where TryLock is invoked)
...
SVN:trunk[3736]
2015-09-09 09:23:54 +00:00
Denis Flaven
586ec4515d
Mutex instrumentation for troubleshooting...
...
SVN:trunk[3595]
2015-06-19 14:46:08 +00:00
Denis Flaven
1aa489890c
Make sure that the SQL mutexes are specific to the current iTop instance, but still preserving the capability for the setup to detect an already running cron job with or without a valid config file.
...
SVN:trunk[3591]
2015-06-12 17:00:41 +00:00
Romain Quetiez
1ba2ed809c
Added a warning when upgrading the application while a CRON is being executed on the same DB
...
SVN:trunk[3239]
2014-07-03 07:11:43 +00:00
Denis Flaven
a72e15023f
Proper handling of the re-entrence of the Lock/Unlock within the same PHP page. Previously the code was sometimes performing 2 Unlock() for each Lock().
...
SVN:trunk[3217]
2014-06-18 15:24:31 +00:00
Denis Flaven
ce9806b01c
Allow re-entrance in the same named mutex within the same PHP page.
...
SVN:trunk[3115]
2014-04-01 09:50:21 +00:00
Romain Quetiez
abae2129ad
CRON: protection against re-entrance now relies on a bullet-proof mutex. Also added the option 'debug=1' to output the call stack in case an exception occurs (not always because of passwords being shown in the call stack)
...
SVN:trunk[2834]
2013-08-26 15:29:32 +00:00