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

    • Sprint 94 (Nov 2022), Sprint 95 (Dec 2022)
    • 0.25

      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.

            iivs Ivo Kurzemnieks
            kseve Kirils Seve
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: