Bug 2196360

Summary: Weird behavior when applying role filters
Product: Red Hat Satellite Reporter: Ricardo Santamaria <risantam>
Component: Users & RolesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED MIGRATED QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.13.0CC: aruzicka, mhulan, oezr, wpinheir
Target Milestone: UnspecifiedKeywords: MigratedToJIRA, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-06-06 16:13:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ricardo Santamaria 2023-05-08 19:48:51 UTC
Description of problem:

For created role has set of filters. 3 have unlimited checked. If create filter that has unlimited UNchecked. 

Version-Release number of selected component (if applicable):

This has been reproduced in latest versions of Satellite 6.13/12/11/10 

How reproducible:
Simply create a role (IE: User Role) and create any filters all unlimited. Then 

Steps to Reproduce:
0. Set any org any location 
1. Create role: example 'User Role'
2. Assign filters all which should be unlimited. For example:
   - Hosts View, Host Delete, Host Create 
   - At this moment all have checked icon for 'Unlimited?' 

3. Now edit one of them, ex: 'Host View' and uncheck the 'unlimited?' option and add filter 'name ~ serverA' and 'Submit' 

At this moment the 'Unlimited?' column has no icon

4. Edit 'Host View' once again. Remove the filter and enable 'Unlimited?' and then submit

Actual results:
There is no checked icon for 'Host View' in the unlimited column.

Expected results:
Once it is any Org/Location and there is no filter the checked icon should be in the 'Unlimited?' column? 

Similar found bugzillas:

BugĀ 2158725 - In User Role -> Add Filter, Unlimited check selected to all resources, which is not being checked while adding filter 

BugĀ 1677469 - Filter Fact value with permission view_facts does not take unlimited option in Roles

Comment 2 Adam Ruzicka 2023-10-05 13:03:02 UTC
When a filter is first created, it gets saved with taxonomy_search empty. On update, this gets filled with a search describing the role's taxonomies, thus making the filter limited.

Comment 3 Eric Helms 2024-06-06 16:13:54 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "SAT-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.