Pierre Goiffon
b7136c0b7a
N°2214 Add PHP check in CLI scripts
...
It is quite common that the PHP interpreter that is launched in CLI is different that the one used by the webserver. So iTop code launched by CLI could run in a context that doesn't meet iTop requirements !
This adds in the following scripts the same control that is done on the setup wizard first step :
* cron.php
* backup, check-backup
* export, exportv2
* bulk import
* synchro-exec, synchro-import
If the check throws at least one error then the script is stopped with an appropriate message, and a log is made (IssueLog, Error level, CLI channel)
(cherry picked from commit c768e18e2b : no risk taken for 2.7.1, so cherry picked for 2.8.0)
2020-06-15 15:20:17 +02:00
Pierre Goiffon
8de4c0360d
Merge remote-tracking branch 'origin/support/2.7' into develop
2020-04-20 16:08:15 +02:00
TAHRI Ahmed R
79cfb95f6e
Support array for json_data posted in rest/json service ( #99 )
...
Previous syntax :
```
CURLOPT_POSTFIELDS => array(
'auth_user' => 'admin',
'auth_pwd' => 'admin',
'json_data' => '{
"operation": "core/get",
"class": "Person",
"key": "SELECT Person", "limit": "10", "page": "1"
}'
);
```
Now we can also use :
```
CURLOPT_POSTFIELDS => array(
'auth_user' => 'admin',
'auth_pwd' => 'admin',
"json_data[operation]" => "core/get",
"json_data[class]" => "Person",
"json_data[key]" => "SELECT Person",
"json_data[limit]" => 10,
"json_data[page]" => 1
);
```
2020-03-27 18:11:09 +01:00
Pierre Goiffon
5b496f4d15
N°2866 Change "cron" case in labels as it is not an acronym
...
Thanks @Hipska for the feedback done in Combodo/iTop#124 !
2020-03-26 11:15:47 +01:00
Pierre Goiffon
07b8830436
N°2814 Fix cannot authenticate in some HTTP calls
...
basic mode was forced in 0dd1f26b
scripts concerned :
* synchro/synchro_import.php
* webservices/cron.php
* webservices/import.php
2020-03-02 11:56:00 +01:00
Stephen Abello
368b49ef8f
N°2314 - Markup extensibility: Fix table sorter icons in html export pages
2020-02-25 10:36:56 +01:00
Eric
98a9c680c5
🐛 Updated rest example
2020-02-18 17:02:13 +01:00
Eric
900e8ac6d7
N°985 - Add applicable contexts on Trigger
2020-01-20 15:50:08 +01:00
Eric
8a1a78444d
N°2249 - Supportability - Updater module (unified version name)
2020-01-16 18:13:58 +01:00
Eric
5be800cfce
N°2249 - Supportability - Updater module (split ajax calls)
2020-01-15 15:48:54 +01:00
Pierre Goiffon
0ee77d8c88
N°2163 DB*Tracked methods : modifications after review with Romain
...
Previous commit : 24eb82d1
Use \CMDBObject::SetTrackInfo
Move \CMDBObject::SetCurrentChange calls at the top most level of the stacks
Restore old behaviors that were removed in previous commit
2019-11-25 14:58:59 +01:00
Pierre Goiffon
24eb82d140
N°2361 Deprecate DB*Tracked methods
...
* update methods PHPDoc
* DBInsertTracked update callers
* DBInsertTrackedNoReload update callers
* DBUpdateTracked update callers
* DBDeleteTracked update callers
2019-11-15 17:56:04 +01:00
Pierre Goiffon
7235c63445
Abstract implementation for iScheduledProcess ( #89 )
...
* 📝 little PHPDoc in BackupExec
* ♻️ Create a extendable implementation of iScheduledProcess
* create AbstractWeeklyScheduledProcess
* move schedule methods to the new abstract class
* create ProcessInvalidConfigException
* in cron.php skip abstract class
2019-11-15 14:41:00 +01:00
bruno DA SILVA
08c1f4f072
autoload rework
...
- bootstrap.inc.php is now included by approot.inc.php
- remove all unescessaries includes of bootstrap.inc.php
- in bootstrap.inc.php autoload can be bypassed using a feature flag because "why not"
2019-11-08 16:51:57 +01:00
Eric
9b14cd7633
N°2240 - Supportability - Maintenance mode
2019-11-07 15:23:42 +01:00
Eric
2b2488f376
N°2240 - Supportability - Maintenance mode
2019-11-07 15:21:48 +01:00
Eric
5e7ae930c5
N°2240 - Supportability - Maintenance mode
2019-11-07 12:36:35 +01:00
Eric
9054dcb9ff
N°2517 - Supportability : system report (user name)
2019-11-04 12:06:49 +01:00
Eric
68895551b2
N°2517 - Supportability - system report (Added cron user)
2019-10-09 12:11:17 +02:00
Eric
0dd1f26b39
N°2311 - Authentication extensibility in iTop
2019-10-08 15:23:24 +02:00
Eric
afe760a8bc
N°2240 - Supportability - Maintenance mode
2019-10-01 13:53:34 +02:00
Vincent Dumas
56f0e95a22
Fix typo in a comment
2019-09-30 17:05:43 +02:00
Eric
044623309c
N°2240 - Supportability - Maintenance mode
2019-09-27 17:13:25 +02:00
Pierre Goiffon
51bbe1f79d
Handle nested transactions ( #90 )
...
* starting a new transaction will send nothing in the DB (only one global transaction : merge nested transactions)
* same for COMMIT or ROLLBACK if more than 1 transaction is opened
* transactions are kept inside \DBObject::DBInsertNoReload, but they can be disabled using config flag db_core_transactions_enabled=false (true by default, hidden by default)
2019-08-20 10:47:29 +02:00
Molkobain
947e26d864
Internal: Change how the bootstrap.inc.php file is included in endpoints (This completes commit ec095896)
2019-08-13 17:38:51 +02:00
Molkobain
ec09589646
N°2439 Add real autoloader for framework files (not modules)
2019-08-13 13:46:19 +02:00
Eric
a6737afb2f
N°2240 - Supportability - Maintenance mode
2019-07-11 10:22:39 +02:00
Guy Couronné
b57c224052
📈 Add KPI on API Rest ( #67 )
2019-06-03 09:07:25 +02:00
Thomas Casteleyn
5c9d98d12c
Fix cron crash when MySQL connection lost ( #80 )
2019-04-30 11:02:02 +02:00
Thomas Casteleyn
9bb365e60d
Added example php location argument
2019-03-20 10:14:54 +01:00
Thomas Casteleyn
b3c80e6ecf
Added changes as requested
2019-03-20 10:14:54 +01:00
Thomas Casteleyn
e5c77f64aa
Update cron.cmd to have better defaults and remove references to old php version
2019-03-20 10:14:54 +01:00
Pierre Goiffon
94092f445f
Merge remote-tracking branch 'origin/support/2.5'
...
# Conflicts:
# application/applicationextension.inc.php
# webservices/rest.php
2019-03-08 14:35:02 +01:00
Pierre Goiffon
44f5d71e1b
💡 PHPDoc for REST API
2019-03-04 16:00:35 +01:00
Stephen Abello
32f1e97bcd
(retrofit from master) N°1148: Fix regression on export
...
(cherry picked from commit 90e128f951 )
2019-02-13 15:13:13 +01:00
Stephen Abello
90e128f951
N°1148: Fix regression on export
2019-02-11 13:33:07 +01:00
Eric
57e8b9faaf
N°1583 - user_manager User cannot create a User without Contact
2018-11-20 15:43:05 +01:00
Pierre Goiffon
21c5638e1e
Merge branch 'support/2.5' into develop
...
# Conflicts:
# application/applicationextension.inc.php
# application/dashlet.class.inc.php
# application/itopwebpage.class.inc.php
# application/loginwebpage.class.inc.php
# application/menunode.class.inc.php
# application/nicewebpage.class.inc.php
# application/query.class.inc.php
# application/utils.inc.php
# application/webpage.class.inc.php
# application/wizardhelper.class.inc.php
# core/action.class.inc.php
# core/attributedef.class.inc.php
# core/cmdbchangeop.class.inc.php
# core/cmdbobject.class.inc.php
# core/cmdbsource.class.inc.php
# core/config.class.inc.php
# core/dbobject.class.php
# core/dbobjectsearch.class.php
# core/dbobjectset.class.php
# core/kpi.class.inc.php
# core/modelreflection.class.inc.php
# core/modulehandler.class.inc.php
# core/oql/expression.class.inc.php
# core/oql/oql-lexer.plex
# core/oql/oql-parser.y
# core/oql/oqlquery.class.inc.php
# core/ormpassword.class.inc.php
# core/sqlobjectquery.class.inc.php
# core/sqlquery.class.inc.php
# core/sqlunionquery.class.inc.php
# core/trigger.class.inc.php
# core/userrights.class.inc.php
# css/light-grey.scss
# datamodels/2.x/itop-backup/status.php
# datamodels/2.x/itop-config/config.php
# datamodels/2.x/itop-full-itil/datamodel.itop-full-itil.xml
# datamodels/2.x/itop-knownerror-mgmt/en.dict.itop-knownerror-mgmt.php
# datamodels/2.x/itop-knownerror-mgmt/module.itop-knownerror-mgmt.php
# datamodels/2.x/itop-portal-base/portal/src/controllers/abstractcontroller.class.inc.php
# datamodels/2.x/itop-portal-base/portal/src/controllers/brickcontroller.class.inc.php
# datamodels/2.x/itop-portal-base/portal/src/controllers/browsebrickcontroller.class.inc.php
# datamodels/2.x/itop-portal-base/portal/src/controllers/createbrickcontroller.class.inc.php
# datamodels/2.x/itop-portal-base/portal/src/controllers/defaultcontroller.class.inc.php
# datamodels/2.x/itop-portal-base/portal/src/controllers/managebrickcontroller.class.inc.php
# datamodels/2.x/itop-portal-base/portal/src/controllers/objectcontroller.class.inc.php
# datamodels/2.x/itop-portal-base/portal/src/controllers/userprofilebrickcontroller.class.inc.php
# datamodels/2.x/itop-portal-base/portal/src/routers/abstractrouter.class.inc.php
# datamodels/2.x/itop-portal-base/portal/src/routers/browsebrickrouter.class.inc.php
# datamodels/2.x/itop-portal-base/portal/src/routers/createbrickrouter.class.inc.php
# datamodels/2.x/itop-portal-base/portal/src/routers/defaultrouter.class.inc.php
# datamodels/2.x/itop-portal-base/portal/src/routers/managebrickrouter.class.inc.php
# datamodels/2.x/itop-portal-base/portal/src/routers/objectrouter.class.inc.php
# datamodels/2.x/itop-portal-base/portal/src/routers/userprofilebrickrouter.class.inc.php
# datamodels/2.x/itop-portal/datamodel.itop-portal.xml
# datamodels/2.x/itop-tickets/en.dict.itop-tickets.php
# dictionaries/da.dictionary.itop.core.php
# dictionaries/da.dictionary.itop.ui.php
# dictionaries/en.dictionary.itop.core.php
# dictionaries/en.dictionary.itop.ui.php
# dictionaries/fr.dictionary.itop.core.php
# dictionaries/hu.dictionary.itop.core.php
# dictionaries/it.dictionary.itop.core.php
# dictionaries/nl.dictionary.itop.core.php
# dictionaries/pt_br.dictionary.itop.core.php
# dictionaries/tr.dictionary.itop.core.php
# dictionaries/zh.dictionary.itop.core.php
# js/forms-json-utils.js
# js/jquery-migrate-1.4.1.min.js
# js/jquery.layout.js
# js/jquery.layout.min.js
# js/jquery.tablesorter.pager.js
# js/linkswidget.js
# js/searchformforeignkeys.js
# js/utils.js
# js/wizardhelper.js
# pages/schema.php
# readme.txt
# setup/ajax.dataloader.php
# setup/xmldataloader.class.inc.php
# sources/renderer/bootstrap/fieldrenderer/bssubformfieldrenderer.class.inc.php
# sources/renderer/console/consoleformrenderer.class.inc.php
# sources/renderer/console/fieldrenderer/consoleselectobjectfieldrenderer.class.inc.php
# sources/renderer/console/fieldrenderer/consolesimplefieldrenderer.class.inc.php
# sources/renderer/console/fieldrenderer/consolesubformfieldrenderer.class.inc.php
# test/ItopDataTestCase.php
# test/core/ormLinkSetTest.php
# webservices/backoffice.dataloader.php
# webservices/rest.php
2018-10-18 14:34:22 +02:00
Pierre Goiffon
588899db63
Convert all files from CrLf to Lf (preparing merge to develop)
2018-10-18 14:20:40 +02:00
Molkobain
a37698a9de
Fix regression introduced in commit 10b7fa6 (Web queries have issue with line breaks in cell value)
2018-10-17 13:04:57 +02:00
Pierre Goiffon
33e8b6a64c
Switch back files from CrLf to Lf
2018-10-04 17:43:03 +02:00
Stephen
c0d83e96d8
Retrofit 2.5.1 fixes into develop ( 11308dc7, 1e0d654, 7fddd6ac, 12e9e453, cbe749af, 10b7fa60, c5f3598f, 396fc2cd)
2018-10-04 11:12:16 +02:00
Molkobain
10b7fa6014
N°1647 Fix Excel web queries import. (JS script error popups)
2018-10-03 10:16:15 +02:00
Dennis Lassiter
49bb8fd515
Fixed bug that caused memory_limit=-1 to lead to 'not enough memory' … ( #1 )
...
* Fixed bug that caused memory_limit=-1 to lead to 'not enough memory' error
* Added Unit Test to Memory Limit Check
2018-09-06 10:04:28 +02:00
Pierre Goiffon
40a4e6d7b0
Fix files using CrLf, convert them to Lf to have the whole repo using Lf
...
Warn your git config (core.autocrlf = input or true)
2018-09-04 17:59:51 +02:00
Pierre Goiffon
985ad18048
REST service PHPDoc & code cleanup
...
SVN:trunk[5946]
2018-07-18 07:40:10 +00:00
Denis Flaven
65409373eb
Enhancement: automatic re-ordering of the background tasks at each execution of cron.php so that one single task cannot use all the CPU time.
...
SVN:trunk[5734]
2018-04-24 12:12:36 +00:00
Denis Flaven
512f368cbf
(regression) Do not block the execution of the page (based on the access rights on the menu) since the page is used for all exports. The export will be blocked anyway if the user does not have the BULK_READ rights on the target class.
...
SVN:trunk[5697]
2018-04-19 13:43:53 +00:00
Pierre Goiffon
c562098ef7
N°993: restrict the access to the REST/JSON web services to users having the profile "REST Services User" (restore 2018-04-10 revisions : r5632..r5633)
...
SVN:trunk[5630]
2018-04-12 08:53:02 +00:00
Pierre Goiffon
08c5d0e4c1
N°1342 cron : fix iScheduledProcess implementations that were rescheduled on every cron start and so never processed :( (was introduced in r5371)
...
SVN:trunk[5374]
2018-02-27 16:38:38 +00:00