Molkobain
bd050dfe69
N°2875 - Add possibility to configure the marker scope by either a class or an OQL
2021-08-09 10:38:27 +02:00
Pierre Goiffon
7b6ac202c6
N°4518 Add config parameter to set platform as dev env ( #220 )
...
developer_mode.enabled, default value null
If true or false then will be used by \utils::IsDevelopmentEnvironment as return value, in all other cases will follow previous behavior
2021-07-12 09:27:36 +02:00
Molkobain
67afbd1d8d
N°4146 - Fix crash on object deletion
2021-07-07 13:18:10 +02:00
Pierre Goiffon
aa9ab1ace5
Merge remote-tracking branch 'origin/support/2.7' into develop
...
# Conflicts:
# css/css-variables.scss
# datamodels/2.x/authent-cas/module.authent-cas.php
# datamodels/2.x/authent-external/module.authent-external.php
# datamodels/2.x/authent-ldap/module.authent-ldap.php
# datamodels/2.x/authent-local/module.authent-local.php
# datamodels/2.x/combodo-db-tools/module.combodo-db-tools.php
# datamodels/2.x/itop-attachments/module.itop-attachments.php
# datamodels/2.x/itop-backup/module.itop-backup.php
# datamodels/2.x/itop-bridge-virtualization-storage/module.itop-bridge-virtualization-storage.php
# datamodels/2.x/itop-change-mgmt-itil/module.itop-change-mgmt-itil.php
# datamodels/2.x/itop-change-mgmt/module.itop-change-mgmt.php
# datamodels/2.x/itop-config-mgmt/module.itop-config-mgmt.php
# datamodels/2.x/itop-config/module.itop-config.php
# datamodels/2.x/itop-core-update/module.itop-core-update.php
# datamodels/2.x/itop-datacenter-mgmt/module.itop-datacenter-mgmt.php
# datamodels/2.x/itop-endusers-devices/module.itop-endusers-devices.php
# datamodels/2.x/itop-files-information/module.itop-files-information.php
# datamodels/2.x/itop-full-itil/module.itop-full-itil.php
# datamodels/2.x/itop-hub-connector/module.itop-hub-connector.php
# datamodels/2.x/itop-incident-mgmt-itil/module.itop-incident-mgmt-itil.php
# datamodels/2.x/itop-knownerror-mgmt/module.itop-knownerror-mgmt.php
# datamodels/2.x/itop-portal-base/module.itop-portal-base.php
# datamodels/2.x/itop-portal/module.itop-portal.php
# datamodels/2.x/itop-problem-mgmt/module.itop-problem-mgmt.php
# datamodels/2.x/itop-profiles-itil/module.itop-profiles-itil.php
# datamodels/2.x/itop-request-mgmt-itil/module.itop-request-mgmt-itil.php
# datamodels/2.x/itop-request-mgmt/module.itop-request-mgmt.php
# datamodels/2.x/itop-service-mgmt-provider/module.itop-service-mgmt-provider.php
# datamodels/2.x/itop-service-mgmt/module.itop-service-mgmt.php
# datamodels/2.x/itop-sla-computation/module.itop-sla-computation.php
# datamodels/2.x/itop-storage-mgmt/module.itop-storage-mgmt.php
# datamodels/2.x/itop-tickets/module.itop-tickets.php
# datamodels/2.x/itop-virtualization-mgmt/module.itop-virtualization-mgmt.php
# datamodels/2.x/itop-welcome-itil/module.itop-welcome-itil.php
# datamodels/2.x/version.xml
2021-06-29 16:12:49 +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
acognet
275daf3b0d
N°4085 - Polishing : bulk modify
2021-06-25 10:11:57 +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
Pierre Goiffon
2625d2da80
💡 PHPDoc
2021-06-03 15:29:13 +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
e488ec8c38
N°3914 - Fix "toolkit" actions not being displayed in the menu
2021-05-04 18:26:37 +02:00
odain
993dbed7e7
document IsDevelopmentEnvironment defensive behaviour
2021-05-04 08:55:46 +02:00
odain
390dc1c945
document IsDevelopmentEnvironment defensive behaviour
2021-05-04 08:55:20 +02:00
Molkobain
fce3934977
Improve PHPDoc
2021-04-23 22:34:33 +02:00
Molkobain
d8feda89a5
N°2875 - Add return example in the PHPDoc
2021-04-23 17:03:29 +02:00
Molkobain
7aecdd0dc7
N°2875 - Extract method to find mentioned objects into utils so it can used by extensions, not only the trigger
2021-04-23 17:01:17 +02:00
odain
52dbf23245
protect IsDevelopmentEnvironment function from warning
2021-04-16 11:33:14 +02:00
Molkobain
923a4048d3
Keyboard shortcuts: Add method to retrieve info about a particular shortcut
2021-04-13 11:46:34 +02:00
Stephen Abello
f97f55bcca
N°3896 - CKeditor icon for enhance WikiText URLs syntax
2021-04-07 16:20:01 +02:00
Molkobain
5fa2caac29
Mentions: Show initials when no picture for contact
2021-04-06 00:02:13 +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
Molkobain
a67bff3959
Reorder some methods by theme
2021-04-05 20:44:39 +02:00
Eric
131ecd5e3b
N°3251 - Restore 2.7 behaviour of ExecITopScript (hide passwords from commandline arguments) and allow tests to provide credentials
2021-03-31 16:36:40 +02:00
Molkobain
7fec31e775
PHPDoc
2021-03-17 16:05:33 +01:00
odain
8fce088e6f
Merge branch 'support/2.7' into develop
2021-03-17 15:26:19 +01:00
Molkobain
5452286d8d
Fix utils::GetClassesForInterface() not working on Windows env. (courtesy from @Steffunky)
2021-03-17 13:13:57 +01:00
Stephen Abello
a8ede8b857
N°3524 Add keyboard shortcuts to global actions
2021-03-17 11:00:16 +01:00
Stephen Abello
8dd8f98b61
Migrate method to get classes implementing specified interface to utils
2021-03-17 10:57:26 +01:00
Pierre Goiffon
2432ff77a3
💡 More details in PHPDoc for \utils::RealPath
2021-03-17 08:34:25 +01:00
odain
eacdfa4088
Merge branch 'support/2.7' into develop
2021-03-15 16:06:20 +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
Molkobain
8dd96ea636
Copyright year bump
2021-03-15 09:29:45 +01:00
Molkobain
c3140c2db3
Copyright year bump
2021-03-12 18:48:46 +01:00
odain
577ae34b50
Merge branch 'support/2.7' into develop
2021-03-09 15:40:30 +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
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
Pierre Goiffon
c2c69d9f43
💡 N°3750 PHPDoc
2021-03-04 09:32:02 +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
Pierre Goiffon
225c176f71
N°3750 data-input-type : change XHR detection method
...
I added WebPage::IsAjaxPage, but this wasn't a good idea as XHR isn't really related to the Page impl used !
Instead we're now using the new method \utils::IsXmlHttpRequest which is a copy of \Symfony\Component\HttpFoundation\Request::isXmlHttpRequest
Many thanks @Molkobain !
2021-03-02 12:13:27 +01:00
bruno-ds
26bbdc1a57
Merge remote-tracking branch 'origin/support/2.7' into develop
...
# Conflicts:
# application/cmdbabstract.class.inc.php
# application/utils.inc.php
# dictionaries/en.dictionary.itop.core.php
# dictionaries/fr.dictionary.itop.core.php
# setup/setuputils.class.inc.php
2021-02-23 08:58:29 +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
Stephen Abello
46b4990252
N°3632 Move tab's layout preference to preferences page
2021-01-22 10:30:12 +01:00
Pierre Goiffon
09e531f11c
N°3623 new \utils::EscapeHtml method
2021-01-13 16:10:43 +01:00
Eric
2dea5447b4
N°2677 - Add style definition for enums (Default values)
2021-01-05 11:07:18 +01:00
Thomas Casteleyn
42354ba794
Improve secure connection detection ( #161 )
...
The previous code broke the setup page when the iTop server is behind a proxy that handles SSL termination.
Now the detection also checks the `HTTP_X_FORWARDED_PROTO` and `HTTP_X_FORWARDED_PROTOCOL` HTTP headers.
For any other page than the setup, the check is unchanged.
Many thanks @Hipska !
2020-12-16 15:37:48 +01:00
Molkobain
97c77b612e
N°2875 - Add config. param. 'mentions.allowed_classes' to choose which classes (eg. Person / FunctionalCI) can be mentioned through which char. (eg. @ / #)
2020-12-10 10:27:34 +01:00