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

Inconsistent messages when trying to access a forbidden page

XMLWordPrintable

      When trying to access a page that the user has no permission to, different error messages are displayed in different cases:

      1. If you try to open the setup.php with a non-super admin user an "Configuration file error: No permissions to referred object or it does not exist!" error is displayed. See 1. screenshot.
      2. If you try to open a configuration or administration page, for instance, hosts.php with a plain user, it displayed a "ERROR: No permissions to referred object or it does not exist!". See 2. screenshot.
      3. If you try to open a page with a guest user when guest access is disabled, it shows an error with a half-rendered frontend layout. See 3. screenshot.

      Instead it should always display this error:

      You are not logged in.

      You must login to view this page.
      If you think this message is wrong, please consult your administrators about getting the necessary permissions.

      If guest access is enabled, the frontend menu should be rendered as on screenshot 4., otherwise the message should be displayed on a gray background as on screenshot 5.

        1. 1357813395963-uploadscreenshot-dot-com.png
          26 kB
          Pavels Jelisejevs
        2. 1357813425526-uploadscreenshot-dot-com.png
          12 kB
          Pavels Jelisejevs
        3. 1357813496870-uploadscreenshot-dot-com.png
          24 kB
          Pavels Jelisejevs
        4. 1357813649244-uploadscreenshot-dot-com.png
          29 kB
          Pavels Jelisejevs
        5. 1357813667313-uploadscreenshot-dot-com.png
          17 kB
          Pavels Jelisejevs

            Unassigned Unassigned
            jelisejev Pavels Jelisejevs (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: