312 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
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
39f53b6cee ObjectController: branch hint on create 2022-09-20 12:06:52 +02:00
Thomas Gelf
956708475e BranchSupport: new helper class 2022-08-31 14:45:28 +02:00
Thomas Gelf
13c09855fa ObjectController: refactor initalization 2022-07-20 09:59:42 +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
376344257c DbObjectStore: inject into DbObject for related...
...objects in a branch
2021-12-17 12:51:24 +01:00
Thomas Gelf
7f22c12f9f Host/ObjectController: no sets in branches 2021-12-17 08:06:20 +01:00
Thomas Gelf
60104327bf ObjectController: add some branch-related hints 2021-12-14 10:46:52 +01:00
Thomas Gelf
6786cc768f Director: some fixes for PHP v8.1
refs #2435
2021-11-24 11:56:18 +01:00
Thomas Gelf
e29c025d64 Service/TemplateController: fix links, use uuids
fixes #2411
2021-10-18 07:27:28 +02:00
Thomas Gelf
a00c91991d ObjectController: refactor Branch usage, give...
...more and better hints
2021-10-05 23:33:30 +02:00
Thomas Gelf
2b24e9bcf8 BranchedObjectHint: move, support BranchedObject 2021-10-05 23:33:30 +02:00
Thomas Gelf
2c27446c9f NotInBranchHint: dedicated class, used in our...
...BranchHelper
2021-10-05 23:33:30 +02:00
Thomas Gelf
b898041caa DirectorObjectForm: use Branch, not UUID 2021-08-25 13:00:56 +02:00
Thomas Gelf
bdd9e2b1e5 IcingaCloneObjectForm: do not clone templates...
...in branches. Reason: fields
2021-08-25 11:28:51 +02:00
Thomas Gelf
085cec0eb7 BranchedObjectsHint: new hints for lists 2021-08-23 08:56:16 +02:00
Thomas Gelf
48ac87cff5 ObjectController: hook has been updated 2021-08-23 08:55:30 +02:00
Thomas Gelf
d83a0aaba5 BranchHelper: use BranchStore 2021-08-23 08:54:34 +02:00
Thomas Gelf
1470a134f4 Branch support: initial import 2021-08-16 11:43:09 +02:00
Thomas Gelf
7c553257a6 ObjectController: fail when loading twice 2021-08-16 07:12:06 +02:00
Thomas Gelf
44ca8890f2 ActionController: check view->compact
fixes #2141
2021-07-13 01:01:49 +02:00
Thomas Gelf
c5e25cdcc7 ScheduledDowntime: introduce a new permission...
...and a related name-based restriction

fixes #2086
2021-04-23 12:33:42 +02:00
Thomas Gelf
0a9bd53d2d RestApi: no escaping for unicode and slashes
fixes #2243
2020-12-02 18:06:34 +01:00
Thomas Gelf
a2f294fea2 IcingaCloneObjectForm: explicit baseUrl
fixes #1894
2020-11-30 10:19:21 +01:00
Thomas Gelf
456832e7d1 css, various places: use Hint class 2020-10-26 18:50:13 +01:00
Thomas Gelf
24a5411a93 ActionController: provide response-helper for all
...controllers
2020-10-26 16:39:36 +01:00
Thomas Gelf
e2d753bad7 RestApi: add a new helper method to this trait 2020-10-07 16:04:06 +02:00
Thomas Gelf
54ec11aec2 Window: workaround for bug in web >= 2.6.3
fixes #2063
2020-01-17 11:58:28 +01:00
Thomas Gelf
2a8a641117 ObjectsController: apply search for REST API too
fixes #1889
2019-11-06 13:27:43 +01:00
Thomas Gelf
bbe55f28b6 config: Allow to disable the Director UI
fixes #2007
2019-10-31 15:45:36 +01:00
Thomas Gelf
606d71501e Use ipl, try to keep dipl compatibility 2019-09-11 23:02:39 +02:00
Thomas Gelf
dbc4699042 Merge branch 'next' 2019-09-11 22:44:27 +02:00
Thomas Gelf
0e0bc3fb5d various: some little fixes 2019-09-11 22:36:36 +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
cc15cae34a Basket: allow to add external commands and...
...command templates
2019-05-27 17:27:18 +02:00
Bernhard Friedreich
7177d489ec Fix wrong links for hosts/apply rules based on <something> (#1864) 2019-05-06 21:24:09 +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
db00f1bfc4 ObjectController: Use objects table name to search history
This was mainly a problem for IcingaServiceSet and others that may have
a capital letter where the table name is split by `_`
2019-04-10 10:39:05 +02:00
Markus Frosch
b3bd671d90 ObjectController: Fix phpcs lint 2019-03-19 15:43:20 +01:00
Markus Frosch
de8654fc74 ObjectController: Fix back link for clone action with services 2019-03-19 15:29:08 +01:00
Thomas Gelf
bd16756913 TemplateTree: new loop detection
fixes #1631
2019-02-13 21:43:37 +01:00