Bug #32388
closedHost detail - user without power_hosts permissions sees spinner in all host view
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1801630
Description of problem:
TLDR: look at attached screenshot and fix spinner.
When nonadmin user opens All hosts, instead of power icon there is spinner, that's okay, but after the response from server come, spinner should stop. Right now it spins forever.
Api call bellow says you don't have enough permissions to see power icon. (okay but spinner should stop)
curl --request GET --insecure --user <user>:<password> https://<satellite>/api/v2/hosts/<hostname>/power
{
"error": {"message":"Access denied","details":"Missing one of the required permissions: power_hosts","missing_permissions":["power_hosts"]}
}
Not sure if it possible, but please can you look if something similar can occur also with another entities with some roles for dynamic loads in ui (ie. spinners)
Version-Release number of selected component (if applicable):
satellite 6.7 snap 10
How reproducible:
Always
Steps to Reproduce:
AS ADMIN:
0. Do not forget to use same organization and location for role, user, host.
1. Create role with Filters: 'Organization': ['view_organizations'], 'Host': ['view_hosts']
2. Create non admin user with attached role.
3. Create host/ existing host should be enough ( I don't try it)
AS NEW USER:
4. Log in as new user -> All hosts, spinner
Actual results:
Power spinner spins forever.
Expected results:
I would expect empty place as you can see in model, host group, last report or actions.
Additional info:
I can give you an instance of satellite with this setup.
Updated by Tomer Brisker about 3 years ago
- Subject changed from Host detail - user without power_hosts permissions sees spinner in all host view to Host detail - user without power_hosts permissions sees spinner in all host view
- Status changed from New to Resolved
This was fixed by #28515 already.