Pierre Goiffon
8ea5be4ead
Merge remote-tracking branch 'origin/support/2.6' into support/2.7
...
# Conflicts:
# application/transaction.class.inc.php
2021-10-18 14:32:27 +02:00
Pierre Goiffon
b3f827ed5e
N°4367 Security hardening
2021-10-18 14:27:58 +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
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
Pierre Goiffon
e32e275f40
🎨 Align dataprovider elements
2021-06-29 16:45:34 +02:00
Pierre Goiffon
b5074c4cee
N°3806 Fix saying memory_limit isn't enough in CLI scripts and setup
...
This was caused by the strict comparison in \utils::IsMemoryLimitOk for the special "-1" value of memory_limit, which was added in c2f5cafa .
Fix was to change \utils::ConvertToBytes : it was returning original value when input was numeric (so if input is '-1' output was '-1') now it always returns an int (input '-1' output -1)
2021-06-28 14:53:39 +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
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
caa2a05bf4
🔧 restore .editorconfig
...
Was moved to /test by mistake
And also editorconfig syntax was removed :(
Those mistakes were done in 7f15eed9
Thanks Molkobain, good catch !
2021-05-26 15:19:40 +02:00
Pierre Goiffon
44952d1ea0
✅ Fix \UtilsTest::testIsMemoryLimit
2021-05-25 17:04:32 +02:00
Pierre Goiffon
7f15eed9a8
🔧 Update .editorconfig
...
* Preserve XML line breaks
* Add markdown
* Add editorconfig
2021-05-25 15:50:23 +02:00
BGdu38
c2f5cafaf3
Avoid setting memory_limit to lower value than the one already configured ( #215 )
...
Some scripts are setting the memory_limit PHP option : setup, csvimport and XLSX export. This was done to avoid crashing when dealing with such large amount of data.
But sometimes we were setting the value without any prior check, so we could actually lower the memory_limit value :/
Now this memory_limit change is done using \utils::SetMinMemoryLimit, which will call ini_set if and only if the current value is lower than the one to be set.
Setup calls (setup/ajax.dataloader.php and webservices/backoffice.dataloader.php) were left as is as they weren't subject to this bug, and also they are more complex (logging done on each case).
2021-05-25 12:03:19 +02:00
Pierre Goiffon
d74e3e6b42
💡 ItopTestCase : some PHPDoc
2021-05-18 17:16:04 +02:00
bruno-ds
91fc2d2e2b
N°3671 - reformat tests
2021-03-17 08:46:41 +01:00
odain
b5adb2e82b
N°3671: fix and make test more lisible
2021-03-15 19:01:09 +01:00
odain
386c90c601
N°3668 - URL direct error: renamed trust_proxies<-behind_reverse_proxy
2021-03-15 14:56:16 +01:00
odain
3bcae734e5
N°3671 : persist absolute URL when setup context (force trustproxy enabled)
2021-03-15 12:27:05 +01:00
bruno-ds
ae6a264d6d
N°3671 - fix typo in HTTP header name
2021-03-05 16:57:03 +01:00
bruno-ds
7b093a6bba
N°3671 - app_root_url: handle reverse proxies during the setup and preserve existing configuration during an upgrade.
2021-03-03 11:55:18 +01:00
odain
d4607ee815
N°3065 - Failed enum comparison when values contains parenthesis : add a warning
2021-03-02 07:33:36 +01:00
bruno-ds
cd4b3fdaab
N°3764 - fix CI
2021-03-01 16:27:40 +01:00
bruno-ds
95a0efedcf
N°3728 - security hardening
2021-03-01 15:28:34 +01:00
Pierre Goiffon
35155e4b7a
💡 N°3065 comments modifications
2021-02-26 10:06:29 +01:00
Molkobain
5836be7131
Fix unit test
2021-02-24 09:49:16 +01:00
odain
74246a8278
N°3065 - Failed enum comparison when values contains parenthesis - enhance db model parsing used during setup comparison with expected one to generate SQL migration queries
2021-02-18 18:24:09 +01:00
odain
46f9fe743c
fix ci: adapt test to make sure config date_and_time is set properly before
2021-02-18 16:27:38 +01:00
odain
c31df5fff3
fix ci: adapt test to make sure config date_and_time is set properly before
2021-02-18 16:07:37 +01:00
Molkobain
9d2fc883b8
Fix test name
2021-02-17 10:31:59 +01:00
odain
913ea0cef2
N°3412 - Command Injection vulnerability in the Setup Wizard - renaming
2021-02-17 10:22:21 +01:00
odain
bb877a244b
N°3412 - Command Injection vulnerability in the Setup Wizard - do not use escapeshellcmd before execution in Windows envt
2021-02-17 10:09:39 +01:00
odain
a12959d60e
N°3412 - Command Injection vulnerability in the Setup Wizard - handle empty path
2021-02-17 07:50:18 +01:00
odain
571520815a
N°3412 - Command Injection vulnerability in the Setup Wizard - include test to CI
2021-02-16 17:25:45 +01:00
odain
e9cff0920b
N°3412 - Command Injection vulnerability in the Setup Wizard - fix test and code
2021-02-16 17:12:41 +01:00
Eric
dbb6e43751
N°3618 - Count on union with different conditions fails (Fix unit tests)
2021-02-05 11:28:40 +01:00
Eric
f07f0ba1c7
N°3618 - Count on union with different conditions fails (Fix multi-column attributes sql generation)
2021-02-05 10:15:14 +01:00
Pierre Goiffon
a5894c1a4c
Rename \Combodo\iTop\Test\UnitTest\ItopTestCase::InvokeInvisible* to InvokeNonPublic*
2021-02-04 09:41:56 +01:00
Eric
e06996a2e4
N°3660 - Fix JOIN without condition on child joined table is ignored (check done in optimizer)
2021-02-03 15:58:54 +01:00
Pierre Goiffon
765560d1f5
ItopTestCase : helpers to call invisble methods
2021-02-02 17:57:40 +01:00
Eric
bc024d9ed0
N°3660 - Fix JOIN without condition on child joined table is ignored
2021-02-02 17:30:03 +01:00
odain
37351d6b3e
N°3464: fix ci
2020-12-07 16:23:17 +01:00
odain
57a085eec1
N°3464: move fix in itop-fence + fix/enhance rest api test
2020-12-07 15:56:35 +01:00
odain
0019595923
N°3464: fix ci
2020-12-07 00:44:39 +01:00
odain
4d61c14f80
N°3464 add test in phpunit.xml.dit to validate the fix
2020-12-07 00:12:31 +01:00
odain
cf1b613923
N°3464 REST comment field not working anymore
2020-12-06 23:54:27 +01:00
Pierre Goiffon
cece15d10c
N°3416 Updates after code review
...
Many thanks @bruno-ds !
* add comments to explain intentions
* fix indentations
2020-12-03 17:45:44 +01:00
Pierre Goiffon
ecebe4ecd5
N°3416 XFrame and cache headers optimizations
...
* Remove XFrame header set in \WebPage::no_cache : not this method responsability, was confusing :/
* Remove no_cache() calls when already set in page constructor (ajax_page mainly)
* Also calls everywhere the \WebPage::no_cache method instead of setting headers manually
2020-12-02 17:19:05 +01:00
Pierre Goiffon
512b415bd6
N°3065 add test case in comment
2020-10-30 11:30:22 +01:00