[ZBX-6840] "Undefined index" and "Invalid argument supplied" in maps.inc.php Created: 2013 Jul 31 Updated: 2017 May 30 Resolved: 2014 May 02 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Frontend (F) |
Affects Version/s: | 2.0.7 |
Fix Version/s: | 2.0.9rc1 |
Type: | Incident report | Priority: | Blocker |
Reporter: | Alexander Vladishev | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 2 |
Labels: | maps, regression | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Issue Links: |
|
Description |
Undefined index: 10086 [include/maps.inc.php:1145] The similar problem was fixed in pre-2.1.0 r32718 under How to reproduce:
regression, broken by: r36359 | tomtom | 2013-06-14 11:46:30 +0300 (Fri, 14 Jun 2013) | 10 lines A......... added sorting for groups so it would work correctly with dbConditionInt(), which I think gave some performance boost as well; |
Comments |
Comment by Alexey Pustovalov [ 2013 Aug 02 ] |
The same problem on dashboard page when it has defined filter with selected a part of groups: Undefined index: 195 [include/blocks.inc.php:291] Undefined index: tab_priority [include/blocks.inc.php:291] Undefined index: 3 [include/blocks.inc.php:291] Undefined index: count [include/blocks.inc.php:291] I think the problem should be solved for all places in the issue. |
Comment by Ivo Kurzemnieks [ 2013 Aug 02 ] |
Added index checking for triggers. Aslo added few extra index checks in unsafe places. Maybe some are not required now, maybe some will be required in future and/or some are overlooked. RESOLVED for 2.0 in svn://svn.zabbix.com/branches/dev/ZBX-6840 |
Comment by rrr [ 2013 Aug 06 ] |
Error still exists on Dashboard in zabbix-2.0.8rc1-37582: Undefined offset: 9 [include/blocks.inc.php:291] Undefined index: tab_priority [include/blocks.inc.php:291] Undefined offset: 1 [include/blocks.inc.php:291] Undefined index: count [include/blocks.inc.php:291] Undefined index: count_unack [include/blocks.inc.php:300] Undefined offset: 24 [include/blocks.inc.php:291] Undefined index: tab_priority [include/blocks.inc.php:291] Undefined offset: 1 [include/blocks.inc.php:291] Undefined index: count [include/blocks.inc.php:291] Undefined index: count_unack [include/blocks.inc.php:300] Undefined offset: 4 [include/blocks.inc.php:291] Undefined index: count [include/blocks.inc.php:291] Undefined index: count_unack [include/blocks.inc.php:300] Undefined offset: 11 [include/blocks.inc.php:291] Undefined index: tab_priority [include/blocks.inc.php:291] Undefined offset: 4 [include/blocks.inc.php:291] Undefined index: count [include/blocks.inc.php:291] Undefined index: count_unack [include/blocks.inc.php:300] Undefined offset: 0 [include/blocks.inc.php:291] Undefined index: count [include/blocks.inc.php:291] Undefined index: count_unack [include/blocks.inc.php:300] Undefined index: name [include/blocks.inc.php:317] Undefined index: groupid [include/blocks.inc.php:317] Undefined index: name [include/blocks.inc.php:317] Undefined index: groupid [include/blocks.inc.php:317] Undefined index: name [include/blocks.inc.php:317] Undefined index: groupid [include/blocks.inc.php:317] |
Comment by Ivo Kurzemnieks [ 2013 Aug 06 ] |
Final changes in 2.0.8rc1 will be implementent when solution provided in development branch is tested and accepted. |
Comment by Pavels Jelisejevs (Inactive) [ 2013 Aug 06 ] |
(1) The if clause in maps.inc.php lines 1054, 1109 and 1130 are not required because there the API will return only the data that is present on the map and no undefined indexes should occur. iivs RESOLVED in r37623 jelisejev CLOSED. |
Comment by Pavels Jelisejevs (Inactive) [ 2013 Aug 07 ] |
TESTED. |
Comment by Ivo Kurzemnieks [ 2013 Aug 07 ] |
Fixed in pre-2.0.8rc1 r37642 |
Comment by richlv [ 2013 Aug 13 ] |
(2) let's add tests for this (data in the test db that would trigger this problem). maybe it's worth adding this configuration with api calls, instead of direct sql inserts... ESidorova At the moment it is more feasible to use sql inserts, that should be ok for now sasha CLOSED |