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

User group's problem tag filter issues, when more than 250 host groups are used

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Workaround proposed
    • Icon: Trivial Trivial
    • None
    • 7.0.15, 7.2.9, 7.4.1rc1, 8.0.0alpha1 (master)
    • Frontend (F)

      Problem tag filter in user group configuration is not working correctly when adding 250 or more host groups.

      Test case #1 - added tags and groups are not displayed in the multiselect, re-saving usergroup with a new tag will result in a runtime error in the log

      Steps to reproduce:
      Precondition: 250 or more host groups are previously created

      1. Log in as Super admin
      2. Open Users -> User groups -> Create user group
      3. Add a valid name
      4. Switch to Problem tag filter tab
      5. Select 250+ host groups using multi-select, add
      6. Click edit for one of the group
      7. Observe, that edit form doesn't have any data
      8. Save the user group
      9. Edit the user group -> Problem tag filter tab
      10. Edit any of the group
      11. Add new group, add tags
      12. Click add

      Result: No host groups are displayed when editing, Unexpected server error appears when adding the tag, runtime error in the log:

      Undefined array key "tags" [zabbix.php:17 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> CController->run() -> CControllerUsergroupTagFilterList->doAction() -> CConfigFile->{closure}() in app/controllers/CControllerUsergroupTagFilterList.php:58]
      Undefined array key "tags" [zabbix.php:17 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> ZBase->processResponseFinal() -> CView->getOutput() -> include() -> CPartial->getOutput() -> include() -> CConfigFile->{closure}() in app/partials/usergroup.tagfilters.php:32]
      Undefined array key "tags" [zabbix.php:17 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> ZBase->processResponseFinal() -> CView->getOutput() -> include() -> CPartial->getOutput() -> include() -> CConfigFile->{closure}() in app/partials/usergroup.tagfilters.php:35]
      TypeError: key(): Argument #1 ($array) must be of type array, null given in /home/zabbix/workspace/7.0/ui/app/partials/usergroup.tagfilters.php:35
      Stack trace:
      #0 /home/zabbix/workspace/7.0/ui/app/partials/usergroup.tagfilters.php(35): key()
      #1 /home/zabbix/workspace/7.0/ui/include/classes/mvc/CPartial.php(102): include('...')
      #2 /home/zabbix/workspace/7.0/ui/app/views/usergroup.tagfilter.list.php(26): CPartial->getOutput()
      #3 /home/zabbix/workspace/7.0/ui/include/classes/mvc/CView.php(128): include('...')
      #4 /home/zabbix/workspace/7.0/ui/include/classes/core/ZBase.php(726): CView->getOutput()
      #5 /home/zabbix/workspace/7.0/ui/include/classes/core/ZBase.php(641): ZBase->processResponseFinal()
      #6 /home/zabbix/workspace/7.0/ui/include/classes/core/ZBase.php(228): ZBase->processRequest()
      #7 /home/zabbix/workspace/7.0/ui/include/config.inc.php(20): ZBase->run()
      #8 /home/zabbix/workspace/7.0/ui/zabbix.php(17): require_once('...')
      #9 {main}

      See video:

      Test case #2 -> Page not found is displayed, when adding bigger amount of host groups in problem tag filter.

      Steps to reproduce
      Precondition: 500+ host groups previously created

      1. Log in as Super admin
      2. Open Users -> Usergroups -> Create user group
      3. Add a valid name
      4. Switch to Problem tag filter tab
      5. Select 500+ host groups using multi-select
      6. Save the user group

      Result: Page not found is displayed
      See video:

      Expected result: problem tag filter should work as expected with higher amount of host groups

            zabbix.dev Zabbix Development Team
            ngogolevs Nikita Gogolevs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: