-
Problem report
-
Resolution: Duplicate
-
Trivial
-
None
-
6.0.19rc1, 6.4.4rc1, 7.0.0alpha2
-
Sprint 101 (Jun 2023), Sprint 102 (Jul 2023)
Precondition: only 10 depth positions can be added to map navigation tree widget
Steps to reproduce:
- Use attached zbx_export_sysmaps.yaml file and import maps. Map structure with submaps is: A>B>C>D>E>F>G>H>I>J>K
- Create map navigation tree widget
- Select "A" map and mark "Add submaps"
- Press icon to add child element for last 10th map "J" in tree
- Try to add 11th element
Result: php runtime error
Undefined array key "sysmap" [zabbix.php:22 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> ZBase->processResponseFinal() -> CView->getOutput() -> include() -> CConfigFile->{closure}() in widgets/navtree/views/navtreeitem.edit.php:40] Undefined array key "name" [zabbix.php:22 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> ZBase->processResponseFinal() -> CView->getOutput() -> include() -> CConfigFile->{closure}() in widgets/navtree/views/navtreeitem.edit.php:56] Undefined array key "depth" [zabbix.php:22 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> ZBase->processResponseFinal() -> CView->getOutput() -> include() -> CConfigFile->{closure}() in widgets/navtree/views/navtreeitem.edit.php:67] Undefined array key "user" [zabbix.php:22 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> ZBase->processResponseFinal() -> CView->getOutput() -> include() -> CConfigFile->{closure}() in widgets/navtree/views/navtreeitem.edit.php:99] Trying to access array offset on value of type null [zabbix.php:22 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> ZBase->processResponseFinal() -> CView->getOutput() -> include() -> CConfigFile->{closure}() in widgets/navtree/views/navtreeitem.edit.php:99]
Expected: no errors and you shouldn't be able to add more than 10 depth positions. For 10th element doesn't appear icon to add child element in 4.0 and 5.0 zabbix versions
Another test case for 9th element in map tree:
4. Press icon to add child element for 9th element "I" in tree
5. Try to add one more 10th element
Result:
An endless loading appears and JS error in console
Expected: no error, you can add several elements to 10th position in map tree
- duplicates
-
ZBX-21970 Console error in Map navigation tree widget
- Closed