Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-35651 Discovery page fails with "too many redirects" when User role uses unrecognized search fields.
  3. SAT-37334

[QE] Discovery page fails with "too many redirects" when User role uses unrecognized search fields.

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • Discovery Plugin
    • Satellite Rocket Sprint 1, Satellite Rocket Sprint 2, Satellite Rocket Sprint 3, Satellite Rocket Sprint 4, Satellite Rocket Sprint 5

      Description of problem:

      When the user Role uses a Host filter using fields that are not available for Discovered Hosts. (E.g: Hostgroup) the "Discovered Hosts" returns infinite 302 until the browser fails with a "ERR_TOO_MANY_REDIRECTS"

      How reproducible:

      Always

      Is this issue a regression from an earlier version:

      No

      Steps to Reproduce:

      • Create a User Rol with a Host filter using any non-valid field for the Discovery search. E.g: "hostgroup = RHEL9_Clients"
      • Log in to Satellite with a user on that Role.
      • Go to "Hosts > All Hosts", here the filter works as expected showing only Hosts in "RHEL9_Clients" Hostgroup.
      • Go to "Hosts > Discovered Hosts"

      Actual behavior:
      the page breaks showing the too many redirects error. 

      Expected behavior:

      • The page should show an error message about the invalid field, but still load and show all the discovered Hosts.
      • Note that if there is no filter for the role and an invalid search field is manually introduced in the Discovered Hosts search box, it shows the appropriate error message: "Error:, ,Field 'hostgroup' not recognized for searching!" 

      Business Impact / Additional info:

      • Assign host provisioning and management to specific users/usergroups based on Hostgroups impacted.

      QE Tracker for https://issues.redhat.com/browse/SAT-35651

              rhn-support-sganar Shubham Ganar
              satellite-jira-automation@redhat.com Satellite Jira-Automation
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: