Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-22856

Error when trying to add element at 10th position in map navigation tree widget

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • 6.0.19rc1, 6.4.4rc1, 7.0.0alpha2
    • Frontend (F)
    • Sprint 101 (Jun 2023), Sprint 102 (Jul 2023)

      Precondition: only 10 depth positions can be added to map navigation tree widget
      Steps to reproduce:

      1. 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
      2. Create map navigation tree widget
      3. Select "A" map and mark "Add submaps"
      4. Press icon to add child element for last 10th map "J" in tree
      5. 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

        1. 5.0widget.png
          5.0widget.png
          22 kB
        2. maptree.gif
          maptree.gif
          845 kB
        3. maptree10.png
          maptree10.png
          18 kB
        4. zbx_export_sysmaps.yaml
          36 kB

            zabbix.dev Zabbix Development Team
            natalja.zabbix Natalja Romancaka
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: