[ZBX-16978] Undefined offset when creating a Problems by severity widget with show = Totals that displays only problems with certain severities Created: 2019 Nov 22 Updated: 2024 Apr 10 Resolved: 2019 Dec 09 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Frontend (F) |
Affects Version/s: | 4.4.2rc2, 5.0.0alpha1 |
Fix Version/s: | 4.4.4rc1, 5.0.0alpha1, 5.0 (plan) |
Type: | Problem report | Priority: | Minor |
Reporter: | Sergejs Olonkins | Assignee: | Roberts Lataria (Inactive) |
Resolution: | Fixed | Votes: | 2 |
Labels: | problemsbyseverity, undefinedoffset, widget | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: |
![]() |
||||||||
Issue Links: |
|
||||||||
Team: | |||||||||
Sprint: | Sprint 58 (Nov 2019), Sprint 59 (Dec 2019) | ||||||||
Story Points: | 0.25 |
Description |
Problem description: Undefined offset errors are observed in the "Problems by severity" widget when it is created with "Show" set to "Totals" and when only certain severities are displayed on the widget - 2 errors per each filtered severity: Undefined offset: 5 [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerWidgetProblemsBySvView->doAction() → getSystemStatusTotals() in include/blocks.inc.php:452] Undefined offset: 5 [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerWidgetProblemsBySvView->doAction() → getSystemStatusTotals() in include/blocks.inc.php:454] Steps to reproduce:
Result: The following errors are returned in the widget for each severity that was filtered out: Undefined offset: 5 [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerWidgetProblemsBySvView->doAction() → getSystemStatusTotals() in include/blocks.inc.php:452] Undefined offset: 5 [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerWidgetProblemsBySvView->doAction() → getSystemStatusTotals() in include/blocks.inc.php:454] Expected: No errors should be displayed in the widget. |
Comments |
Comment by Roberts Lataria (Inactive) [ 2019 Nov 22 ] |
Resolved in development branch feature/ZBX-16978-4.4. |
Comment by Roberts Lataria (Inactive) [ 2019 Dec 05 ] |
Fixed in:
|