Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-17307

Uncaught Reference Error observed when a user without rights to any hosts creates a graph widget

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 4.0.18rc1, 4.4.6rc1, 5.0.0alpha2
    • Frontend (F)

      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:

      1. Login to zabbix frontend as guest (make sure that guest user doesn't have access to any hosts)
      2. Create a new dashboard
      3. Click on the "Add a new widget" placeholder
      4. 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.

            zabbix.dev Zabbix Development Team
            solonkins Sergejs Olonkins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: