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

A blank page with a JSON error is returned in case if user attempts to enable/disable a host that is removed by another user

XMLWordPrintable

    • Technical backlog

      Problem description: In case if user attempts to enable or to disable a host, from Data collection => Hosts view, that was removed by another user, then a blank page with the "Access denied" JSON error is returned:

      {"error":{"title":"Access denied","messages":["You are logged in as \"Admin\". You have no permissions to access this page.","If you think this message is wrong, please consult your administrators about getting the necessary permissions."]}}
      

      In case if User attempts to Delete a host in the same situation (when a host is already deleted by another user), then the Data collection => Hosts view remains opened and the "Access denied" error is returned as a message. The same behavior should be observed when enabling/disabling such host.

      Steps to reproduce:

      1. Open Data collection => Hosts in two different browsers
      2. Select a host (set the checkbox) in the 1st browser in the list of hosts
      3. Select the same host in the 2nd browser and press "Delete" button
      4. In the 1st browser reload the page and see that the selected host counter still counts this host as selected, even though it doesn't exist anymore.
      5. Press "Delete button and accept the alert"
      6. Observe that the Data collection => Hosts view remains opened and the "Access denied" error is returned as a message.
      7. Repeat steps 1-5, but in the end press Enable or Disable button instead of the Delete button.

      Result: a blank page is displayed, the "Access denied" message is returned in JSON format.
      Expected: the Data collection => Hosts view should remain opened and the "Access denied" error should be returned as a message.

      Example:

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

              Created:
              Updated: