-
Sub-task
-
Resolution: Done
-
Undefined
-
None
-
None
-
False
-
-
False
-
0
-
sat-rocket
-
-
-
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