730 Commits

Author SHA1 Message Date
raviks789
3fcb20178f
Apply correct restrictions to 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-01-24 12:21:41 +01:00
André Nähring
1835661850 Add hasBasketSupport for TimePeriods 2024-11-07 13:16:38 +01:00
Eric Lippmann
00985429c5 Fix PSR-12 violations 2024-10-22 14:31:14 +02:00
Sukhwinder Dhillon
d879186f0e Fix wrong method param types and add var type hints 2024-02-05 16:05:24 +01:00
Sukhwinder Dhillon
bb8076a09d var_export() expects #param 2 to be bool 2024-02-05 16:05:23 +01:00
Sukhwinder Dhillon
9f58dcf8d9 phpstan: Strict check function/class name-case and fix violations 2024-02-05 16:05:23 +01:00
Sukhwinder Dhillon
28d8f0e7d1 ImportsourceController: Remove unnecessary inline js for collapse 2024-01-19 15:17:41 +01:00
Sukhwinder Dhillon
c25a66b484 Avoid inline css style 2024-01-19 15:17:41 +01:00
Sukhwinder Dhillon
708b4dbe8f Remove unnecessary inline style 2024-01-19 15:17:41 +01:00
Sukhwinder Dhillon
d30a56a385 Fix phpcs issues 2024-01-16 09:51:47 +01:00
Sukhwinder Dhillon
d26a619577 ServiceController: Use given properties to get host/service name 2024-01-16 09:51:47 +01:00
Sukhwinder Dhillon
8a489bcc46 HostController: Move ServiceFinder::getRedirectionUrl() method code to findserviceAction()
- This helps to detect backend easily, and was only called in this method anyway.
- Add and use helping method getServicesReadOnlyPermission()
-
2024-01-16 09:51:47 +01:00
Sukhwinder Dhillon
4e6528e862 ServiceController: Remove redudant if condition 2024-01-16 09:51:47 +01:00
Sukhwinder Dhillon
db7181c29e Backend: Remove unnecessary calls to isAvailable() 2024-01-16 09:51:47 +01:00
Sukhwinder Dhillon
9baa3c4341 Remove redudant class MonitorBackendMonitoring and adjuct code accordigly
- Use class `Monitoring` instead
- Remove not in use methods from `MonitorBackend` interface and from classes that implements this interface
- Add param types and return type hint to methods
2024-01-15 16:24:27 +01:00
Tobias Tiederle
1c6090193d add support for icingadb as only icingaweb2 data backend 2023-12-04 10:12:54 +01:00
Thomas Gelf
48db90c7df ObjectsTable: require Auth
fixes #2808
2023-10-11 12:24:36 +02:00
raviks789
9e332b4022 Remove limit count for service set directly added to the host 2023-09-21 14:37:03 +02:00
Thomas Gelf
5298243d94 SyncruleController: fix typo
fixes #2613
2023-08-25 11:00:39 +02:00
EmTeedee
6b7bff80de ${var} deprecated in favor of {$var}
See: https://www.php.net/manual/en/migration82.deprecated.php#migration82.deprecated.core.dollar-brace-interpolation
2023-07-19 10:44:40 +02:00
Thomas Gelf
8e60e0aab9 HostController: relax assertion 2023-06-13 17:39:15 +02:00
Thomas Gelf
62bff81fac BasketUploadForm: allow uploading snapshots...
...for existing Baskets

fixes #1952
2023-03-12 10:45:09 +01:00
Thomas Gelf
5a732170af Basket: support UUIDs
fixes #2716
2023-03-07 15:13:16 +01:00
Thomas Gelf
70a822f270 BasketDiff: new implementation
fixes #2715
2023-03-07 12:15:59 +01:00
Thomas Gelf
bbf85f052b app, lib: formatting, syntax 2023-02-23 12:00:20 +01:00
Thomas Gelf
40254714b8 Permissions: refactor, fix monitoring module checks
fixes #2712
2023-02-23 11:51:53 +01:00
Thomas Gelf
2a37db1115 BranchController: ensure object type is set first
fixes #2142
fixes #2634
2022-11-03 07:25:39 +01:00
Thomas Gelf
01a80c2da8 SelfServiceController: check for null values
fixes #2614
2022-10-27 11:53:54 +02:00
raviks789
26e76c611e 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-04 15:33:29 +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
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
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
b444ec0101 IcingaObjectHandler: allowOverrides for REST API
fixes #2569
2022-07-20 11:58:17 +02:00
Thomas Gelf
349cc33046 ServiceController: throw 404 2022-07-19 12:07:49 +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
93d0afff10 SyncruleController: useless use of use 2022-04-04 19:39:47 +02:00
Thomas Gelf
961a46a6cc ServiceController: ask DbObjectTypeRegistry 2022-02-06 19:15:09 +01:00
Thomas Gelf
9bb600c13b ServiceController: drop obsolete method 2022-02-06 15:32:48 +01:00
Thomas Gelf
fc6f8740fb ServicesetController: no service access in branch 2022-02-06 13:43:20 +01:00
Thomas Gelf
274c153837 various: PHP8.1-related warnings 2022-01-10 11:44:33 +01:00
Thomas Gelf
c487a8b447 ServiceController: refactor loading for related...
...objects

refs #2452
2021-12-23 13:47:29 +01:00
Thomas Gelf
1cbb033911 ServiceController: load Set and Host before...
...the service, which get's loaded in the parent class

fixes #2452
fixes #2449
2021-12-23 10:25:59 +01:00
Thomas Gelf
7d68f8014b ServicesetController: one more PHP 8.1 warning 2021-12-23 10:06:38 +01:00
Thomas Gelf
f77d5b8d0c HostController: show services for hosts created...
...in a branch
2021-12-17 13:57:18 +01:00
Thomas Gelf
376344257c DbObjectStore: inject into DbObject for related...
...objects in a branch
2021-12-17 12:51:24 +01:00