284 Commits

Author SHA1 Message Date
Ravi Kumar Kempapura Srinivasa
a99a998540
Merge commit from fork
Apply relevant restrictions on REST url endpoints
2025-03-26 11:19:54 +01:00
raviks789
4c283a24c8
Fix: Support data type change of columns ts_last_attempt and ts_last_error from timestamp to bigint 2025-03-25 16:03:30 +01:00
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
raviks789
175de1ae84 Fix pgsql binary resource handling for uuids 2024-12-12 09:46:00 +01:00
Johannes Meyer
cdd3fea9d2 PropertyTableSortForm: Don't use ipl`s CSRF counter measure
It's incompatible with gipfl`s…

fixes #2935
2024-12-04 13:28:42 +01:00
raviks789
7fd1468229 Fix CSRF validation for sorting in property tables 2024-11-07 12:57:40 +01:00
Eric Lippmann
00985429c5 Fix PSR-12 violations 2024-10-22 14:31:14 +02:00
raviks789
428a49f433 Remove gipfl/format package dependency
refs: #2847
2024-02-08 15:59:13 +01:00
Sukhwinder Dhillon
bb8076a09d var_export() expects #param 2 to be bool 2024-02-05 16:05:23 +01:00
Sukhwinder Dhillon
be6447874c Remove not in use class ReadOnlyFormAvpTable 2024-01-19 15:17:41 +01:00
Sukhwinder Dhillon
c25a66b484 Avoid inline css style 2024-01-19 15:17:41 +01:00
Thomas Gelf
fb1a23fb01 ObjectsTableSetMembers: fix uuid in link 2023-10-12 19:56:25 +02:00
Thomas Gelf
7267953e13 TemplateUsageTable: pass auth to constructor 2023-10-12 08:45:12 +02:00
Thomas Gelf
48db90c7df ObjectsTable: require Auth
fixes #2808
2023-10-11 12:24:36 +02:00
raviks789
76509bb7c8 IcingaServiceSetServiceTable: Change table alias for director branches 2023-09-22 13:44:09 +02:00
raviks789
ca855c6ee7 TemplateUsageTable: Fix indrect object count
fixes #2806
2023-09-22 13:16:33 +02:00
Thomas Gelf
7c2a3f254b ObjectSetTable: fix on pgsql 2023-09-21 16:02:07 +02:00
raviks789
dcd36877ea Make TemplateUsageTables and other tables compatible with director branches
`TemplateUsageTable`, `ApplyRulesTable`, `ObjectsTableSetmembers` and `TemplatesTable` are
made compatible with `director branches`.
2023-09-21 14:57:30 +02:00
raviks789
3c7082cabc Modify IcingaObjectFilterHelper::filterByTemplate for director branches
Icinga objects must be filterable based on templates when a director branch is active.
2023-09-21 14:57:30 +02:00
raviks789
e6f7d82c09 Add a imports column to the objects
The host or service objects require retrieve the imports column. This
makes it possible to filter them based on templates when a director
branch is active.
2023-09-21 14:57:30 +02:00
Ravi Kumar Kempapura Srinivasa
939f805378 Add setmembers summyary line to TemplateUsageTable
`'setmembers' => $this->getSummaryLine('object', 'o.service_set_id IS NOT NULL AND o.host_id IS NOT NULL'),` is added to TemplateUsageTable
and `objects` is set to ` $this->getSummaryLine('object', 'o.service_set_id IS NULL')`. Subsequently, ObjectTableSetMembers
is added which is used in `setmembersAction` in `TemplateController`. `ObjectTableSetMembers` uses service set name or service name
as search columns.
2023-09-21 14:57:30 +02:00
Thomas Gelf
388f743290 TemplateUsageTable: show header
fixes #2780
2023-07-30 20:39:21 +02:00
Thomas Gelf
7a29d7db87 DatafieldTable: search case insensitive
fixes #2359
2023-07-20 16:24:56 +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
91b99d8e46 ObjectsTable: apply filters for non-branched views
fixes #2775
2023-07-18 11:11:41 +02:00
raviks789
b47478293f fetch $this->affectedHost->get('id') only if $this->affectedHost->get('id') is not null for service set 2023-06-29 17:12:14 +02:00
raviks789
df08e91bc9 Strikethrough deactivated services in applied service set 2023-06-29 15:26:54 +02:00
Thomas Gelf
e98803a8e5 ObjectSetTable: search for services in branches
fixes #2738
2023-04-24 11:10:36 +02:00
Thomas Gelf
40254714b8 Permissions: refactor, fix monitoring module checks
fixes #2712
2023-02-23 11:51:53 +01:00
Thomas Gelf
ce10b7e699 IcingaServiceSetServiceTable: link with uuid...
...to services in sets

refs #2710
2023-02-23 11:51:34 +01:00
Thomas Gelf
ab952f89b0 ObjectSetTable: improve formatting
fixes #2648
2022-11-03 00:58:38 +01: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
ebb08aceae ObjectSetTable: fix for PgSQL when not in branch 2022-09-21 11:00:07 +02:00
Thomas Gelf
47488d138e ObjectSetTable: fix a PostgreSQL issue 2022-09-20 15:27:16 +02:00
Thomas Gelf
59d62d0ff9 ObjectSetTable: branch support 2022-09-20 12:53:00 +02:00
Thomas Gelf
131d4e27ba TableWithBranchSupport: provide setter 2022-09-20 12:20:44 +02:00
Thomas Gelf
4d2f285c01 IcingaServiceSetServiceTable: branch classes 2022-09-20 12:19:31 +02:00
Thomas Gelf
4d8e3f6db7 ServiceSetQueryBuilder: new query builder 2022-09-20 12:19:21 +02:00
Thomas Gelf
b35b6b84cc TableWithBranchSupport: do not branchify relations 2022-09-20 12:03:00 +02:00
Thomas Gelf
28c149efed IcingaServiceSetServiceTable: refactor link logic 2022-08-31 14:45:28 +02:00
Thomas Gelf
d433631174 TableWithBranchSupport: new trait 2022-08-31 14:45:28 +02:00
Thomas Gelf
b2afca2496 Sync: support branches 2022-08-31 14:45:28 +02:00
Thomas Gelf
37954e0aa6 BranchActivityTable: show object name 2022-07-22 14:32:39 +02:00
Thomas Gelf
431d0cfe75 ObjectCommand: add --resolve-services 2022-07-20 16:42:26 +02:00
Thomas Gelf
0796635132 DbHelpers, Connection: improve escapeBinary logic
hex-style for MySQL too, support array values
2022-07-01 08:39:12 +02:00
moreamazingnick
83cc12944d
DirectorActivityLog: fix empty activity log exception
fixes #2505: empty activity log causes exception
fixes #2506
2022-03-28 14:52:46 +02:00
Thomas Gelf
ecf7bce482 ActivityLogTable: use more space, hover texts 2022-02-09 15:43:09 +01:00
Thomas Gelf
8bcc20e004 ActivityLogTable: support remarks
fixes #2471
2022-02-08 08:58:34 +01:00
Johannes Meyer
420dfcbdbf Avoid passing non-string args to ctype_*() functions 2022-01-14 11:31:55 +01:00
Thomas Gelf
36babe65f7 IcingaServiceSetServiceTable: use host uuid for...
...Set Member related to host
2021-12-23 13:46:37 +01:00