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

Uncaught TypeError appears if 'zabbix.php?action' is passed as array

    XMLWordPrintable

Details

    • Team B
    • Sprint 94 (Nov 2022)
    • 0.25

    Description

      Steps to reproduce:

      • Open URL:/zabbix.php?action[]=dashboard.view
      • Check the apache2 error log

      Result:

      TypeError: Argument 1 passed to CRouter::setAction() must be of the type string, array given, called in /home/zabbix/workspace/master/ui/include/classes/core/ZBase.php on line 201 and defined in /home/zabbix/workspace/master/ui/include/classes/mvc/CRouter.php:410
      Stack trace:
      #0 /home/zabbix/workspace/master/ui/include/classes/core/ZBase.php(201): CRouter->setAction()
      #1 /home/zabbix/workspace/master/ui/include/config.inc.php(25): ZBase->run()
      #2 /home/zabbix/workspace/master/ui/zabbix.php(22): require_once('/home/zabbix/wo...')
      #3 {main}
      


      Expected: error handling should be applied.

      Attachments

        Activity

          People

            zabbix.dev Zabbix Development Team
            kseve Kirils Seve
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: