1599 Commits

Author SHA1 Message Date
raviks789
8d9ecf3b0a
Apply relevant restrictions on REST url endpoints
The following url end points should apply relevant restrictions to filter out objects and show correct HTTP status code:
- icingaweb2/director/service, if the host name is left out of the query (Example: icingaweb2/director/service?name=service-name)
- icingaweb2/directore/notification
- icingaweb2/director/serviceset
- icingaweb2/director/scheduled-downtime
2025-03-26 11:12:15 +01:00
raviks789
0ffa1f7acc
IcingaAddServiceForm: Check if service templates exist to add services 2025-03-25 16:30:02 +01:00
Thomas Gelf
3d1ad3dbfc BranchController: ensure object type is set first
fixes #2142
fixes #2634
2022-11-03 10:26:11 +01:00
Thomas Gelf
045b0fa7d6 SelfServiceController: check for null values
fixes #2614
2022-10-27 11:54:28 +02:00
raviks789
11b0ab8ec4 Reset Limit count and offset for $table in HostController::servicesAction
The limit in ObjectsTable::prepareQuery() limits the number of services shown in HostController::servicesAction.
But this limit is required for pagination in ServicesController. Hence, reset the limit when this query is used
in HostController::servicesAction().
2022-10-07 09:58:59 +02:00
Thomas Gelf
ad046b00d2 IcingaServiceForm: set name, not id -> branches 2022-09-21 11:26:47 +02:00
Thomas Gelf
1ff140e9bc locale: refresh German translation 2022-09-21 09:25:40 +02:00
Daniel Patrick
04c4bd2559 IcingaCommand: Remove obsolete CLR check 2022-09-21 08:52:51 +02:00
Thomas Gelf
c56b190469 ServicesetController: allow branch access 2022-09-20 12:54:28 +02:00
Thomas Gelf
25f961a4c8 HostController: allow to add Sets 2022-09-20 12:50:37 +02:00
Thomas Gelf
de4b890e8b IcingaServiceSetForm: use host, not host_id 2022-09-20 12:30:06 +02:00
Thomas Gelf
3c8bb6bd16 IcingaServiceForm: protect against branched objects
...w/o id. Can be improved
2022-09-20 12:19:53 +02:00
Thomas Gelf
4e1cc13320 ServiceController: enableStaticObjectLoader earlier 2022-09-20 12:16:20 +02:00
Thomas Gelf
f301be425c HostController: pass branch to forms 2022-09-20 12:16:00 +02:00
Thomas Gelf
758b99126a IcingaServiceForm: no deactivate in branch for now 2022-09-20 12:04:46 +02:00
Thomas Gelf
3c7c7bc61a ServicesetController: stringify uuid once 2022-09-05 12:23:13 +02:00
Thomas Gelf
0f2045c8f6 SyncruleController: fix preview logic 2022-08-31 14:45:28 +02:00
Thomas Gelf
b2afca2496 Sync: support branches 2022-08-31 14:45:28 +02:00
Thomas Gelf
53e45da815 KickstartForm: fix ini file rendering
fixes #2595
2022-08-31 13:33:41 +02:00
Thomas Gelf
1c30412abd DirectorActivityLog, others: constants, cleanup 2022-08-20 20:41:07 +02:00
Thomas Gelf
b444ec0101 IcingaObjectHandler: allowOverrides for REST API
fixes #2569
2022-07-20 11:58:17 +02:00
Thomas Gelf
e1d7a639d3 ServiceCommand: return after setting overrides 2022-07-20 10:15:00 +02:00
Thomas Gelf
a34d5c15ef ServiceCommand: improve readability 2022-07-20 08:54:27 +02:00
Thomas Gelf
1f3b039395 OverrideHelper: centralize applying overrides 2022-07-20 08:52:10 +02:00
Thomas Gelf
6d0b9310c3 Object/ServiceCommand: some more refactoring 2022-07-20 08:48:09 +02:00
Thomas Gelf
02bed9265a ServiceCommand: extract override-logic 2022-07-20 08:34:05 +02:00
Thomas Gelf
349cc33046 ServiceController: throw 404 2022-07-19 12:07:49 +02:00
Thomas Gelf
050553164d ServiceCommand: allow magic overrides
fixes #2560
2022-07-12 11:27:42 +02:00
Thomas Gelf
0a51d02b86 DeploymentLinkForm: style with gipfl 2022-07-01 08:40:42 +02:00
Thomas Gelf
4c502bb010 ServiceController: do not pass object type...
...when looking up uuid for legacy key

refs #2487
refs #2554
2022-06-24 14:33:38 +02:00
Thomas Gelf
56f81b91bb Exporter: centralize export logic
fixes #2549
2022-06-24 12:52:35 +02:00
Thomas Gelf
0f6fc7bfd0 ImportRowModifierForm: fix exception message 2022-06-09 09:38:18 +02:00
Thomas Gelf
0539819d4c ConditionalDeployment, ConfigCommand: wording
fixes #2523
2022-04-13 14:07:24 +02:00
Thomas Gelf
70e8c06b06 ConfigCommand: don't wait when no deployment...
...took place

fixes #2522
2022-04-13 13:55:47 +02:00
Thomas Gelf
d92a5e846b IcingaServiceForm: check for null 2022-04-04 19:40:42 +02:00
Thomas Gelf
93d0afff10 SyncruleController: useless use of use 2022-04-04 19:39:47 +02:00
Thomas Gelf
9afa3313ab cli: implement deployment grace period and...
...refactor/restructure related code to achieve the same behavior on CLI and
via automated job

fixes #2499
2022-03-22 10:46:36 +01:00
Thomas Gelf
f64822c409 IcingaServiceForm: strip table limit for enum
fixes #2481
2022-03-17 14:23:15 +01:00
Thomas Gelf
0806749055 de_DE: refresh translation 2022-02-17 16:36:49 +01:00
Thomas Gelf
961a46a6cc ServiceController: ask DbObjectTypeRegistry 2022-02-06 19:15:09 +01:00
Thomas Gelf
9269b054f2 IcingaMultiEditForm: store modifications to branch
...when being in a branch
2022-02-06 19:14:35 +01:00
Thomas Gelf
9bb600c13b ServiceController: drop obsolete method 2022-02-06 15:32:48 +01:00
Thomas Gelf
ef360809e6 IcingaServiceForm: set host, not host_id
This allows to create services on hosts which have been created in a branch
2022-02-06 13:49:40 +01:00
Thomas Gelf
269637ce9f IcingaServiceForm: store overrides to branch...
...if set
2022-02-06 13:48:59 +01:00
Thomas Gelf
fc6f8740fb ServicesetController: no service access in branch 2022-02-06 13:43:20 +01:00
Thomas Gelf
4792859657 IcingaServiceForm: do not return void result 2022-02-06 12:32:51 +01:00
Thomas Gelf
21a67e355f IcingaServiceForm: combine duplicate code 2022-02-06 12:31:59 +01:00
Thomas Gelf
c296b716de IcingaServiceForm: some cleanup 2022-02-06 12:28:18 +01:00
Thomas Gelf
351c41cb3c IcingaAddServiceForm: avoid duplicate get() call 2022-02-06 11:30:47 +01:00
Thomas Gelf
274c153837 various: PHP8.1-related warnings 2022-01-10 11:44:33 +01:00