-
Incident report
-
Resolution: Fixed
-
Critical
-
2.4.0rc1, 2.5.0
To reproduce:
- Create screen with clock element.
- Choose host time and select an item from host that guest user will not have permissions to.
- Open Monitoring > Screens as guest user and choose the screen with clock. Errors appear.
reset() expects parameter 1 to be array, null given [screens.php:176 ? CView->render() ? include() ? CScreenBuilder->show() ? CScreenClock->get() ? reset() in C:\Development\zabbix\frontends\php\include\classes\screens\CScreenClock.php:42] Undefined index: value_type [screens.php:176 ? CView->render() ? include() ? CScreenBuilder->show() ? CScreenClock->get() ? CHistoryManager->getLast() in C:\Development\zabbix\frontends\php\include\classes\api\managers\CHistoryManager.php:41] Undefined index: [screens.php:176 ? CView->render() ? include() ? CScreenBuilder->show() ? CScreenClock->get() ? CHistoryManager->getLast() ? CHistoryManager::getTableName() in C:\Development\zabbix\frontends\php\include\classes\api\managers\CHistoryManager.php:72] Undefined index: itemid [screens.php:176 ? CView->render() ? include() ? CScreenBuilder->show() ? CScreenClock->get() ? CHistoryManager->getLast() in C:\Development\zabbix\frontends\php\include\classes\api\managers\CHistoryManager.php:42] Error in query [SELECT * FROM h WHERE h.itemid='' ORDER BY h.clock DESC LIMIT 1 OFFSET 0] [Table 'ivo_zabbix.h' doesn't exist]