Pierre Goiffon
9c6d8253f4
✅ Fix \Combodo\iTop\Test\UnitTest\Core\CMDBSourceTest::testIsOpenedDbConnectionUsingTls
2021-09-30 10:49:11 +02:00
Pierre Goiffon
8fa6ae6703
Merge remote-tracking branch 'origin/support/2.7' into develop
...
# Conflicts:
# core/cmdbsource.class.inc.php
2021-09-30 09:51:13 +02:00
Molkobain
3214ae91c7
N°3791 - Panel: Use style defined in the DM for classes
...
Note that for now, semantic colors cannot be used directly in a <main_color> or <complementary_color> tag. Only valid CSS color (hexa, hsla, ...)
2021-09-26 15:15:34 +02:00
Molkobain
2b38c98183
Compiler: Update unit tests for DM classes / (meta)enum attributes style
2021-09-25 23:27:29 +02:00
Molkobain
ca7f6362bf
ormStyle: Fix icon URL including the app. root in the MetaModel to ease usage with load balancers
2021-09-25 17:00:50 +02:00
Pierre Goiffon
4cf4c0e4c3
♻️ N°4325 refactor CMDBSource mysqli attributes to a separate wrapper class ( #237 )
...
In 2.7.5 with N°3513 we added a second mysqli attribute in CMDBSource, so that we can test transactions (see TransactionsTest).
But this wasn't documented, and was really causing confusion !
This refactor wraps both attributes in a dedicated object so that the logic is clearer.
2021-09-24 11:45:39 +02:00
Pierre Goiffon
cfdbc8ae62
N°4215 When checking for TLS cnx, don't set anymore CMDBSource mysql attributes !
2021-09-23 11:59:44 +02:00
Molkobain
0dc95f93a9
Code conventions
2021-09-23 11:44:10 +02:00
Pierre Goiffon
aaa8f6d311
N°4215 Fix call to a function on null error when setting TLS connection in the setup
...
Regression introduced by b1ca1f2630 / N°3513
2021-09-22 15:59:39 +02:00
bruno-ds
c306c6e30d
N°4261 - code review with @PirGoif
2021-09-21 16:38:10 +02:00
Eric Espie
d8316734e2
N°4305 - n-n links to same class - Be more robust on original search given to ormLinkSet
2021-09-21 15:46:20 +02:00
Pierre Goiffon
ae2072f4d5
N°3002 Get developer_mode.enabled config param first normally, and if not set from disk
2021-09-21 13:56:15 +02:00
Pierre Goiffon
f0aaf21a79
💚 N°3002 Fix php-mock-objects notices
...
The error handler now checks if logger is enabled before doing anything
2021-09-21 12:01:42 +02:00
Eric Espie
e930d34963
N°4305 - n-n links to same class - Fix aliases in request
2021-09-20 16:09:32 +02:00
bruno-ds
daf24d8cb3
N°4261 - implement feedbacks from the team
...
plus:
- the entrypoint is now `LogException()` instead of `FromException()` which sounded more like a factory and less like an active method.
- merge conflicting commit with @molkobain (CC fix)
- remove the writing of the exception object in the error.log context (adding it was an error, it's way too verbose!!).
- Technical note: The context is still used to propagate the exception across several call stack, so it now uses a less generic naming in order to avoid conflicts (see `ExceptionLog::CONTEXT_EXCEPTION`). another solution would have been to add a new parameter to `ExceptionLog::Log()`, but I didn't want to add constraint over the hypothetical evolution of the base class method.
2021-09-20 12:27:39 +02:00
bruno-ds
6e0d570d41
N°4261 - Portal exception logging: Add exception's file and line to the context.
...
plus:
- the exception object is no more automatically added to the error.log context (it's way too verbose)
- code cleanup (use constant instead of repeated strings)
- ExceptionLog main method is now named `LogException` instead of `FromException`
2021-09-20 12:27:39 +02:00
Molkobain
6271a33fdb
Code review: Fix code conventions
2021-09-16 14:53:40 +02:00
bruno-ds
d1721b0834
N°4261 -Fix CI
...
Try to repair an odd error in the CI:
> Fatal error: Uncaught Exception: Serialization of 'ReflectionClass' is not allowed
avoid instantiation in the provider, delay them to the actual test
2021-09-15 14:39:00 +02:00
bruno-ds
66e4f369f7
N°4261 -Fix CI
...
Try to repair an odd error in the CI:
> Fatal error: Uncaught Exception: Serialization of 'ReflectionClass' is not allowed
Maybe it's triggered by the mocks being a property of the test class, so I inlined them.
+ misc. minor modification in order to try to figure out what is causing this behavior.
2021-09-15 13:34:04 +02:00
bruno-ds
5d23a250ae
N°4261 - New log handler dedicated to Exceptions & use of it in the portal's Exception listener
...
Such Exceptions are triggered with a Warning level and default the minimum default level in order to write in DB is above, so the behavior is not modified:
- logs are written in errors.log (with a warning elvel instead of an error)
- logs are not written in DB unless `log_level_min.write_in_db` is changed
2021-09-14 17:40:11 +02:00
Eric Espie
4433cdb21b
N°4047 - Fix undefined offset in core\dbobject.class.php - rewrite duplicate check
2021-09-14 16:13:43 +02:00
odain
3c081461b0
fix ci: use env-production instead
2021-09-07 15:22:46 +02:00
Molkobain
cf556de76e
Add method to get number of entries of an ormCaseLog
2021-08-27 17:28:01 +02:00
Molkobain
5651512f68
N°4244 - Add protection against unfortunate massive delete of inline images / attachments when a null temp ID is passed
2021-08-17 15:58:52 +02:00
Molkobain
7577fbb8bf
N°4236 - Fix user with no admin right can't connect in iTop when log_usage set to true
2021-08-12 11:13:59 +02:00
Pierre Goiffon
cd1ba097cb
N°3867 Fix error "LEVEL_WARNING of type Identifier is forbidden" error when saving valid config in configuration editor
2021-08-11 18:07:38 +02:00
Pierre Goiffon
2d98ca2318
N°3867 Fix "Invalid configuration: Stmt_Expression is forbidden in line 10" error when saving valid config in configuration editor
...
Now this is tested in \ConfigValidator\iTopConfigAstValidatorTest
2021-08-11 16:38:56 +02:00
Pierre Goiffon
cbdc48b7e1
✅ iTopConfigParserTest now works on Windows
2021-08-10 11:48:13 +02:00
Eric
8dae459b12
N°4036 - User edition controls : the profiles selection should allow the User modification (when editing your own User)
2021-07-28 11:45:02 +02:00
Eric
8dc10424e8
🎨 cleanup code
2021-07-28 09:59:10 +02:00
Eric
1d5e0b6fe9
Temporary ignored test for CI
2021-07-27 18:01:39 +02:00
Eric
0396914068
N°3513 - Write object creation history within the same DB transaction for better consistency
2021-06-28 16:59:05 +02:00
Eric
c0fbf0c735
✅ Fix DBObject::EvaluateExpression() tests
2021-06-28 16:21:46 +02:00
Pierre Goiffon
2a1e0b7429
Merge remote-tracking branch 'origin/support/2.7' into develop
...
# Conflicts:
# core/dbobject.class.php
# core/log.class.inc.php
# setup/compiler.class.inc.php
2021-06-28 08:58:34 +02:00
Eric
949b213f9d
N°3513 - revert crud sequence
2021-06-24 13:32:43 +02:00
Eric
b1ca1f2630
N°3513 - ObjectFormManager : remove transaction
...
* Add automatic tests
* Fix object consistency
2021-06-22 16:09:41 +02:00
acognet
224031e0d6
N°3905 - Polishing: CSV Import
2021-06-18 17:00:39 +02:00
odain
c413ac989e
fix ci: add anotations to be able to exclude tests
2021-06-16 18:25:10 +02:00
Pierre Goiffon
d8e2a1cc7c
Merge branch 'support/2.7' into develop
...
# Conflicts:
# README.md
# composer.json
# composer.lock
# core/cmdbsource.class.inc.php
# core/dbobject.class.php
# datamodels/2.x/combodo-db-tools/db_analyzer.class.inc.php
# datamodels/2.x/combodo-db-tools/dbtools.php
# datamodels/2.x/combodo-db-tools/dictionaries/zh_cn.dict.combodo-db-tools.php
# datamodels/2.x/itop-attachments/dictionaries/zh_cn.dict.itop-attachments.php
# datamodels/2.x/itop-core-update/dictionaries/zh_cn.dict.itop-core-update.php
# dictionaries/zh_cn.dictionary.itop.core.php
# dictionaries/zh_cn.dictionary.itop.ui.php
# lib/composer/InstalledVersions.php
# lib/composer/autoload_classmap.php
# lib/composer/autoload_static.php
# lib/composer/installed.php
# lib/composer/platform_check.php
# pages/ajax.render.php
# pages/csvimport.php
# setup/ajax.dataloader.php
# setup/index.php
# setup/setuputils.class.inc.php
# test/application/UtilsTest.php
2021-06-14 16:19:56 +02:00
Eric
d11eceac62
✅ N°4052 - OQL parser limit for huge request - fix CI
2021-06-03 17:07:17 +02:00
Eric
02d32a556d
N°4052 - OQL parser limit for huge request
2021-06-02 15:15:00 +02:00
Eric
71fcc6f026
N°4031 - OQL Error when AttributeObjectKey is used in JOIN condition
2021-06-02 14:45:03 +02:00
Pierre Goiffon
a395c1760a
N°4047 skip test generating a PHP notice
...
Will be fixed later
2021-06-01 16:51:44 +02:00
Molkobain
34647cc402
Fix MetaModel::EnumPlugins unit tests
2021-05-05 14:58:50 +02:00
odain
ad22113881
add annotation to be able to exclude test
2021-05-04 12:28:07 +02:00
Pierre Goiffon
7b3595357a
💚 Removing invalid provider for \Combodo\iTop\Test\UnitTest\Core\LogAPITest::LogApiProvider
...
Config can never be an array
Was working since now, but LogAPI was modified in f6d9d0f0 and it now correctly pick the config, so this provider was failing
2021-04-13 14:37:54 +02:00
Molkobain
8b25679df8
Extract function to get a person's initials to a dedicated ToAcronym function in \utils
2021-04-05 21:05:46 +02:00
odain
9177982592
PR #188 add testcase to cover data synchro regression
2021-04-01 18:11:24 +02:00
Pierre Goiffon
d62825c99b
Improve test error message
2021-03-29 16:49:55 +02:00
Molkobain
8dd96ea636
Copyright year bump
2021-03-15 09:29:45 +01:00