110 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
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
Thomas Gelf
48db90c7df ObjectsTable: require Auth
fixes #2808
2023-10-11 12:24:36 +02:00
raviks789
63a3e6a1ec Fix editing of multi-selected services with same name
Since the object names function as keys for the multi-selected objects array, this becomes a problem when
multiple services as the same name. Hence for the services the array keys must be a combination of service name
and the host name to which the service is related.
2023-09-21 14:59:42 +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
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
c643959d06 PreferredBranchSupport: for directorbranches
fixes #2688
fixes #2689
2022-12-16 14:16:02 +01:00
Thomas Gelf
6f173b8392 ObjectsController: pass branch to table 2022-09-20 12:22:05 +02:00
Thomas Gelf
fe3d5c7076 ObjectsController: fix 8.1 glitch for JSON format 2022-07-15 22:05:56 +02:00
Thomas Gelf
43dddc58aa ObjectsController: allow uuid for MultiSelect
fixes #2466
2022-02-06 19:13:47 +01:00
Thomas Gelf
085cec0eb7 BranchedObjectsHint: new hints for lists 2021-08-23 08:56:16 +02:00
Thomas Gelf
1470a134f4 Branch support: initial import 2021-08-16 11:43:09 +02:00
Thomas Gelf
2a8a641117 ObjectsController: apply search for REST API too
fixes #1889
2019-11-06 13:27:43 +01:00
Thomas Gelf
606d71501e Use ipl, try to keep dipl compatibility 2019-09-11 23:02:39 +02:00
Thomas Gelf
e1565c9990 Revert "Merge branch 'next'"
This reverts commit f45f925e5e1dbfec627345868d0dd56abc77c4f1, reversing
changes made to 90c07943e4173ef8e32dae5087203f5a712f8077.

This was too early, need to check for incubator
2019-09-06 09:54:03 +02:00
Thomas Gelf
17f8ef1dd0 Use ipl, try to keep dipl compatibility 2019-09-06 09:48:11 +02:00
Bernhard Friedreich
8f871f4afa Fixed phpcs warning else if to elseif 2019-07-04 12:54:48 +02:00
Bernhard Friedreich
03519c25e8 Add action bar with download as json option for service apply rules and templates
related to issue #1811
2019-07-04 12:54:48 +02:00
Gino
64d0d8b618 Fix ambiguous host_id field 2019-07-04 12:16:01 +02:00
Thomas Gelf
5a36735400 ObjectsController: allow to override ApplyRulesTbl 2019-04-11 02:53:31 +02:00
Thomas Gelf
c72b51c538 ScheduledDowntimes: a bunch of url-related changes 2019-04-11 02:34:14 +02:00
Thomas Gelf
0c2cb9e484 ScheduledDowntimes: controllers, first form 2019-04-11 02:34:14 +02:00
Markus Frosch
91a62ffbee phpcs: Fix ObjectsController 2018-11-27 11:00:14 +01:00
Thomas Gelf
a09bd4df95 TemplatesTable: allow to filter by usage
fixes #1339
2018-10-30 17:55:50 +01:00
Thomas Gelf
bff93725eb ObjectController: fix "add to basket" for Sets 2018-10-25 08:38:24 +02:00
Thomas Gelf
ef0499918f Services: fix multiselection for templates 2018-10-25 08:26:09 +02:00
Thomas Gelf
f871e0bd7d basket: cleanup, fix/finish custom selection
fixes #1630
2018-10-15 15:04:14 +02:00
Thomas Gelf
9069a7f916 Objects, FormLoader: exceptions, exceptions 2018-06-14 14:08:04 +02:00
Thomas Gelf
810e873566 Objects: throw not found 2018-06-14 08:59:48 +02:00
Thomas Gelf
df4c3b925c ObjectsController: add missing loadForm
fixes #1518
2018-06-12 20:20:25 +02:00
Thomas Gelf
99ddb9266b Commands: show usage over templates and objects
fixes #335
2018-05-04 18:02:05 +02:00
Thomas Gelf
cd2de241dd Commands: allow to filter by usage
fixes #1480
2018-05-04 11:03:42 +02:00
Thomas Gelf
0e10545175 ServiceSet: allow controlled/restricted access
fixes #1235
2017-10-12 16:54:31 +02:00
Thomas Gelf
fb72a6e293 ObjectsController: allow admins to download JSON
fixes #1226
2017-10-11 10:55:20 +02:00
Thomas Gelf
bab0ebc6c1 AdditionalTableActions: add showsql to the GUI
fixes #1227
2017-10-11 10:51:43 +02:00
Thomas Gelf
d1e116a5a1 ipl: rename to dipl
fixes #1217
2017-10-09 15:23:27 +02:00
Thomas Gelf
e45962c1b9 various: shorten long line, spacing, readability 2017-09-28 11:02:13 +02:00
Marc DeTrano
708edfdebc Updates: clean code for whitespace/standards...
...issues as reported by Travis. Add requirement for parent and child host
fields when setting up a Dependency Object (these fields are not necessarily
needed for Templates or Apply Rules). Renamed new table field to
'parent_service_by_name'... which is a bit more descriptive or what that
field is intended for.
2017-09-28 11:01:27 +02:00
Marc DeTrano
6bea1eff41 Implement Icinga Dependency Configuration. 2017-09-28 11:01:27 +02:00
Thomas Gelf
e950bb3395 Objects: ship templates via REST API
fixes #1185
2017-09-18 10:23:36 +02:00
Thomas Gelf
ac8114f32c ObjectsController: hard-code 'host' filter for...
...services through the REST API
2017-08-21 09:50:08 +02:00
Thomas Gelf
408ff7639c IcingaObjectsHandler: new REST API handler for...
...list of objects
2017-08-16 08:17:31 +02:00
Thomas Gelf
a7b796466f ObjectsController: fix set-related permissions 2017-08-15 02:51:59 +02:00
Thomas Gelf
b7579e184c ObjectsController: try to control output buffering
...for REST API. Base requests on queries from new table objects
2017-08-02 15:54:03 +02:00
Thomas Gelf
5ccb94dfbd Objects: dedicated tab for external commands 2017-07-31 10:37:08 +02:00
Thomas Gelf
8276f19ab7 ObjectsController: add missing autorefresh 2017-07-28 09:56:17 +02:00
Thomas Gelf
313c8168ba Dashboard, templates: timeperiod, not timePeriod
fixes #1036
2017-07-27 12:12:12 +02:00
Thomas Gelf
39a1aa38b4 ObjectsController: add missing 'add' link for sets 2017-07-25 14:47:35 +02:00
Thomas Gelf
374c328a5b ObjectsController: fix redirect after deleting...
...multiple hosts or services
2017-07-21 13:32:38 +02:00