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
34f64c61f6
privUITransaction fix inspections errors + formatting
2021-10-18 11:32:38 +02:00
Molkobain
27217815d1
N°2510 - Fix expand/collapse buttons of log entries in a list
2021-08-16 09:37:36 +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
3a876d5c75
Log complete error on Memory Limit or max execution time
2021-06-11 09:36:01 +02:00
Pierre Goiffon
373641e01d
🎨 Code formatting
2021-06-03 17:31:34 +02:00
Pierre Goiffon
2625d2da80
💡 PHPDoc
2021-06-03 15:29:13 +02:00
Eric
5691ca0327
✅ Fix CI
2021-05-28 08:48:47 +02:00
Pierre Goiffon
44952d1ea0
✅ Fix \UtilsTest::testIsMemoryLimit
2021-05-25 17:04:32 +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
Molkobain
9af4846372
N°3810 - Avoid syntax highlighting that shouldn't take place
2021-03-23 16:39:22 +01:00
Pierre Goiffon
2432ff77a3
💡 More details in PHPDoc for \utils::RealPath
2021-03-17 08:34:25 +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
a06bf6ea7c
coding convention (thanks @molkobain)
2021-03-05 09:20:04 +01:00
bruno-ds
bb8d4a92cb
fix an indentation problem (thanks @Hipska)
2021-03-04 09:56:05 +01:00
bruno-ds
1429792690
N°3668 - fix an improper redirection to the homepage when iTop is behind a reverse proxy
2021-03-04 09:39:48 +01:00
bruno-ds
1f26b59d90
N°3671 - add an API endpoint (it will be used by N°3668 and N°3760) + some code cleanup asked by @molkobain
2021-03-04 09:32:13 +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
bruno-ds
0030d5c2b8
N°3764 - add transactions_gc_threshold in order to tune CSRF token GC load
2021-03-01 15:30:40 +01:00
bruno-ds
95a0efedcf
N°3728 - security hardening
2021-03-01 15:28:34 +01:00
bruno-ds
9b7cd20d47
N°3473 - security hardening
2021-02-24 16:50:13 +01:00
Pierre Goiffon
6e0af1a3b7
💡 Add variable typing
2021-02-18 13:21:06 +01:00
odain
82ba7f25b0
N°3412 - Command Injection vulnerability in the Setup Wizard - do not use escapeshellcmd before execution in Windows envt
2021-02-17 10:18:28 +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
Pierre Goiffon
8265b9b034
N°3416 fix PHPDoc
2020-12-10 18:10:45 +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
cf1b613923
N°3464 REST comment field not working anymore
2020-12-06 23:54:27 +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
8bfcb14d0c
N°3416 XFrame-Options header is now set using a config parameter, defaults to SAMEORIGIN
...
Also adds an indirection (\WebPage::add_xframe_options) to set header
2020-12-02 17:17:11 +01:00
Pierre Goiffon
06acac97ba
✅ Fix tests
...
* update datamodel XML version
* Remove \Combodo\iTop\Test\UnitTest\Core\OQLTest::testTypeErrorQueryParser
2020-10-07 16:21:36 +02:00
Pierre Goiffon
a765eb8725
Merge remote-tracking branch 'origin/support/2.6' into support/2.7
...
# Conflicts:
# application/ajaxwebpage.class.inc.php
# application/csvpage.class.inc.php
2020-10-05 16:12:49 +02:00
Eric
1f53757318
N°3248 - code hardening
...
(cherry picked from commit 6a25933744 )
(cherry picked from commit f74c78d61c )
2020-10-05 14:54:17 +02:00
Pierre Goiffon
090119147c
🎨 PHP formatting
2020-10-05 14:42:03 +02:00
Pierre Goiffon
1551694198
N°3317 Security hardening
2020-10-05 14:42:03 +02:00
Eric
bef1832ac7
N°3317 - Add http headers
2020-09-29 14:07:24 +02:00
Eric
5a46bb8461
N°3320: Do not display empty tabs
2020-09-29 11:23:49 +02:00
Molkobain
0948e80060
N°3320 - Fix empty tabs being displayed (misuse of the API or user rights)
2020-09-28 14:10:19 +02:00
odain
4e0eed6e13
N°3270 Notify on expiration not sending notification (trigger exception)
...
add boilerplate function and use it to intercept/enrich trigger exception loops
2020-09-25 07:18:14 +02:00
Eric
1453558f3e
N°3317 - Add http headers
2020-09-22 11:39:19 +02:00
Eric
bb892cc180
N°3078 - Fix error on login while in maintenance mode
2020-08-27 17:10:37 +02:00
Eric
6a25933744
N°3248 - code hardening
2020-08-18 17:21:48 +02:00
Pierre Goiffon
208ccfe3ab
N°3257 Fix cannot create objects with AttributeImage from extkey widget on PHP 7.4
2020-08-18 17:13:37 +02:00
Eric
f74c78d61c
N°3248 - code hardening
2020-08-18 17:02:46 +02:00
odain
8902d6e532
CI migration/automation + new test to ease iTop release management
...
- new Jenkinsfile and .jenkins removal to launch phpunit/behat tests
triggered on both iTop build and push.
- N°3053 - Check XML conversion methods
- N°3057 - New build recipe
- N°3059 - Automatically set the documentation URLs
- N°3052 - Check community modules XML version against latest version
- N°3054 - Check community modules version against major version
- N°3062 - setup.css file integrity test
- N°3060 - Check consistency between the list of modules and installation.xml
- Add exclusion group for CI
- N°3061 - Automatically check the installation.xml consistency
2020-08-07 14:48:51 +02:00
Eric
fdec608c3e
N°3174 - Remove stack trace from MySQLException
2020-07-16 18:09:44 +02:00
acognet
a6639b067f
N°309 - Afficher les arbres pliés ou dépliés
2020-06-19 12:26:08 +02:00
acognet
e226222c2a
N°3102 - widget regression: OQL syntax error now crash the page instead of displaying an error in place of the widget
2020-06-17 11:11:48 +02:00