Project

General

Profile

Actions

Bug #32388

closed

Host detail - user without power_hosts permissions sees spinner in all host view

Added by Ondřej Ezr about 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Inventory
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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://&lt;satellite&gt;/api/v2/hosts/&lt;hostname&gt;/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.

Actions #1

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.

Actions

Also available in: Atom PDF