3201 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
2e1cac6a58
Fix: Support data type change of columns ts_last_attempt and ts_last_error from timestamp to bigint 2025-03-25 16:31:54 +01:00
Ravi Kumar Kempapura Srinivasa
f1e54348c8 Remove gipfl/format package dependency 2024-02-07 15:01:25 +01:00
Thomas Gelf
9b09a16a78 Sync: always store stats w/o (branch) store
fixes #2633
2022-11-03 10:26:11 +01:00
Thomas Gelf
9320a83d55 SyncUtils: give NULL on nested intermediate NULL
fixes #2474
fixes #2584
2022-11-03 10:26:11 +01:00
Thomas Gelf
97ee1ea30b ObjectSetTable: improve formatting
fixes #2648
2022-11-03 10:26:11 +01:00
Thomas Gelf
77eaafd4a3 IcingaNotification: improve error message
One more improved exception

refs #2142
2022-11-03 10:26:11 +01:00
Thomas Gelf
cf62611a7d IcingaObject: improve error message
Complain about missing object_type, if assign-related properties cannot be
set because of that reason

refs #2142
2022-11-03 10:25:25 +01:00
Thomas Gelf
fd131ba0d8 Sync: fix purge for objects with uppercase chars
fixes #2627
2022-11-03 10:25:25 +01:00
Thomas Gelf
809e2af7ec BranchedObject: set id first
This has an impact on related objects, like timeperiod ranges

fixes #2525
2022-10-26 11:05:20 +02:00
Thomas Gelf
cc92f72e31 BasketSnapshot: simplify error handling
We have no IcingaObject here, they're all stdClass instances
2022-10-25 11:10:50 +02:00
Thomas Gelf
acc3c6bf48 Exporter: don't export UUIDs for non-Icinga objects
fixes #2644
2022-10-25 11:00:53 +02:00
Thomas Gelf
7ce5621e2c BasketSnapshot: show object-related details...
...in case an error occurs at encoding time

fixes #2646
2022-10-25 10:48:18 +02:00
Thomas Gelf
b3edc054ec DbConnection: deprecate/replace quoteBinary()
Proxies to newer code as a fix, related calls should be substituded
in the long run

fixes #2630
2022-10-18 16:54:34 +02:00
Thomas Gelf
c1a6fdd1fb DbObjectStore: treat UUID result for PostgreSQL
fixes #2636
2022-10-13 11:06:47 +02:00
Thomas Gelf
2de3f46a7e Sync: fix purge and invalid sync history
fixes #2632
fixes #2627
2022-10-07 12:58:11 +02:00
Thomas Gelf
075f1962ac DbObject: improve "hasBeenModified" logic 2022-10-07 12:58:11 +02:00
Thomas Gelf
43746a95ad IcingaObject: fix default value for preserve 2022-10-07 12:57:52 +02:00
Thomas Gelf
0231001bc0 Sync: do not set null if overridden
refs #2623
2022-10-07 12:57:44 +02:00
Thomas Gelf
20c311436e Sync: respect null properties on merge
fixes #2623
2022-10-07 12:57:36 +02:00
Thomas Gelf
cf924a2445 DbObjectStore: sort by array index, not uuid 2022-10-07 12:57:26 +02:00
Thomas Gelf
22cf90407d DbObject: grant access to default properties 2022-10-07 12:57:14 +02:00
Thomas Gelf
0ed564db00 IcingaObject: allow to replace with plain object 2022-10-07 12:57:06 +02:00
Thomas Gelf
e0e2ad4aef Sync: load object w/o branch support the old way
fixes #2618
2022-10-07 09:59:25 +02:00
Thomas Gelf
d8f1742553 CoreApi: fix version comparison logic
fixes #2629
2022-10-07 09:59:11 +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
5e2d22943f CustomVariables: do not render deleted ones
fixes #2622
2022-09-30 13:47:59 +02:00
Thomas Gelf
a506cd312f AppliedServiceInfo: fetch UUID object
fixes #2615
2022-09-30 12:17:01 +02:00
Thomas Gelf
057eb3fa85 AppliedServiceSetServiceInfo: provide the UUID
fixes #2619
2022-09-30 12:16:57 +02:00
Ravi Kumar Kempapura Srinivasa
4bca121d99 DirectorJob: fix restoring from snapshot
fixes #2528
2022-09-30 11:40:33 +02:00
Thomas Gelf
1758f8defb Job, Import, Sync: fix restore w/o ID 2022-09-30 11:32:52 +02:00
Thomas Gelf
121ce4db86 Sync: create objects with original key...
...and not with the lower-cased comparison key

fixes #2608
2022-09-22 17:46:15 +02:00
Thomas Gelf
f2eb06ae39 BranchStore: wipe branched tables, not real ones 2022-09-21 11:51:05 +02:00
Thomas Gelf
0cb6e40681 IcingaService: improve error message 2022-09-21 11:50:26 +02:00
Thomas Gelf
ebb08aceae ObjectSetTable: fix for PgSQL when not in branch 2022-09-21 11:00:07 +02:00
Johannes Meyer
3055552728 IcingaObjectQuery: Use $connection->renderFilter instead of whereToSql
`whereToSql` did support timestamp handling in comparison, though this
class couldn't have made use of it since it had to use a query which
overrides the `isTimestamp` function.
2022-09-21 09:04:29 +02:00
Daniel Patrick
04c4bd2559 IcingaCommand: Remove obsolete CLR check 2022-09-21 08:52:51 +02:00
Thomas Gelf
05de5b171b BranchMerger: log change author
fixes #2606
2022-09-21 08:50:45 +02:00
Thomas Gelf
79f8ca26ef Branch: allow access to description
fixes #2604
2022-09-21 07:51:25 +02:00
Thomas Gelf
c91ff3303c ExtensibleSet: short array syntax, readability 2022-09-20 20:28:05 +02:00
Thomas Gelf
47488d138e ObjectSetTable: fix a PostgreSQL issue 2022-09-20 15:27:16 +02:00
Thomas Gelf
b19dd5f62d IcingaServiceSet: use query builder to retrieve...
...services, this is required for branches
2022-09-20 12:55:55 +02:00
Thomas Gelf
59d62d0ff9 ObjectSetTable: branch support 2022-09-20 12:53:00 +02:00
Thomas Gelf
a684929cf5 ObjectController: allow Service Sets in Branches 2022-09-20 12:48:26 +02:00
Thomas Gelf
6f173b8392 ObjectsController: pass branch to table 2022-09-20 12:22:05 +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
39f53b6cee ObjectController: branch hint on create 2022-09-20 12:06:52 +02:00
Thomas Gelf
2a5909917b BranchSupport, Inspection: allow Sets 2022-09-20 12:05:43 +02:00