-
Problem report
-
Resolution: Duplicate
-
Trivial
-
None
-
6.4.12rc1, 7.0.0beta2
Problem description: In case if a discovered host has a secret macro, and a user switches from "Inherited and host macros" to "Host macros" in Macros tab of its configuration form, then the following errors are returned (per each host macro):
Undefined array key "value" [zabbix.php:22 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> ZBase->processResponseFinal() -> CView->getOutput() -> include() -> CPartial->getOutput() -> include() -> CConfigFile->{closure}() in app/partials/hostmacros.list.html.php:83] Undefined array key "description" [zabbix.php:22 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> ZBase->processResponseFinal() -> CView->getOutput() -> include() -> CPartial->getOutput() -> include() -> CConfigFile->{closure}() in app/partials/hostmacros.list.html.php:84] Undefined array key "type" [zabbix.php:22 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> ZBase->processResponseFinal() -> CView->getOutput() -> include() -> CPartial->getOutput() -> include() -> CConfigFile->{closure}() in app/partials/hostmacros.list.html.php:85]
Steps to reproduce:
- Discover a host with Text macro, Secret macro and Vault macro (or just import the attached host and send value '{"data":[\{"\{#NAME}":"HOST 1"}]}' to key 'trap' on host 'test')
- Open configuration form of this host and switch to Macros tab
- Switch to "Inherited and host macros"
- Switch back to "Host macros"
Result: The above mentioned errors are returned (per each host macro)
Expected: No errors should be observed.
- duplicates
-
ZBX-23397 Runtime error appears in discovered host's configuration, if macros were used in the host's prototype
- Closed