-
Problem report
-
Resolution: Unresolved
-
Trivial
-
None
-
4.0.18rc1, 4.4.6rc1, 5.0.0alpha2
Problem description: Uncaught Reference Error "ZBX_SESSION_NAME is not defined" is observed in browser console if a user, that doesn't have access to any hosts, opens the graph widget configuration dialogue.
Steps to reproduce:
- Login to zabbix frontend as guest (make sure that guest user doesn't have access to any hosts)
- Create a new dashboard
- Click on the "Add a new widget" placeholder
- In the opened widget configuration dialogue change widget type to "Graph"
Result: the following error is observe in browser console:
Uncaught ReferenceError: ZBX_SESSION_NAME is not defined at HTMLDivElement.create (<anonymous>:11:66) at t.<computed>.<computed>._trigger (jsLoader.php?lang=en_GB&ver=4.0.18rc1&showGuiMessaging=0:4985) at t.<computed>.<computed>._createWidget (jsLoader.php?lang=en_GB&ver=4.0.18rc1&showGuiMessaging=0:4985) at new t.<computed>.<computed> (jsLoader.php?lang=en_GB&ver=4.0.18rc1&showGuiMessaging=0:4985) at HTMLDivElement.<anonymous> (jsLoader.php?lang=en_GB&ver=4.0.18rc1&showGuiMessaging=0:4985) at Function.each (jsLoader.php?lang=en_GB&ver=4.0.18rc1&showGuiMessaging=0:4978) at w.fn.init.each (jsLoader.php?lang=en_GB&ver=4.0.18rc1&showGuiMessaging=0:4978) at w.fn.init.t.fn.<computed> [as tabs] (jsLoader.php?lang=en_GB&ver=4.0.18rc1&showGuiMessaging=0:4985) at <anonymous>:11:17 at m (jsLoader.php?lang=en_GB&ver=4.0.18rc1&showGuiMessaging=0:4978)
Expected: no errors should be observed.