icingaweb2-module-director
icingaweb2-module-director copied to clipboard
Cyclic inheritance causes UI to crash
Expected Behavior
If I have accidentally created a cyclic inheritance, I expect an error message and the possibility to resolve the issue in the UI directly.
Current Behavior
If I try to access an object with cyclic inheritance, the UI crashes and I can't edit it to resolve the issue
Possible Solution
Check for cyclic inheritance when loading an object for editing in the UI
Steps to Reproduce (for bugs)
- Create a host template
- Create a second host template, inheriting from the fist
- change the first template to inherit from the second
- A warning is shown that a cyclic dependency is detected
- trying to access any template to resolve the issue results in an error page
Your Environment
- Director version (System - About): 1.11.0
- Icinga Web 2 version and modules (System - About): 2.10.5
- Icinga 2 version (
icinga2 --version
): r2.14.0-1 - Operating System and version: rhel 8.9
- Webserver, PHP versions: 7.4.33