Bug 1825268

Summary: Assigning location and organization to a role causes a malfunction to the filter function "facts"
Product: Red Hat Satellite Reporter: Phil Jasbutis <pjasbuti>
Component: Users & RolesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Peter Ondrejka <pondrejk>
Severity: low Docs Contact:
Priority: low    
Version: 6.7.0CC: dmatoule, mhulan, patalber
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-08 09:07:40 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 Phil Jasbutis 2020-04-17 14:05:37 UTC
Description of problem:

Assigning location and organization to a role causes a malfunction to the filter function "facts".


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

Satellite 6.7.0 and 6.5.3


How reproducible:

Steps to Reproduce:

1) go to "Administration" -> "Roles" -> create a clone of the role "Ansible Tower Inventory Reader" (role allows user to view facts)
2) assign a location AND an organization to this role 
3) create a user named "test1"
4) assign cloned role from step 2 to user "test1"
5) login as user "test1"
6) go to "Monitor" -> "Facts"


Actual results:

no data on facts is displayed


Expected results:

list of facts should show up


Additional info:

Removing location or organization (or both) from role causes that facts show up.

Comment 3 Shira Maximov 2020-07-13 12:56:32 UTC
Created redmine issue https://projects.theforeman.org/issues/30377 from this bug

Comment 5 Dominik Matoulek 2021-10-08 09:07:40 UTC
This issue is duplicate of #1897707. The proposed solution for other bug also affects this bug. In other words, bugs are the same with different name of origin role.

*** This bug has been marked as a duplicate of bug 1897707 ***

Comment 6 Dominik Matoulek 2021-10-08 09:09:33 UTC

*** This bug has been marked as a duplicate of bug 1807258 ***

Comment 7 Dominik Matoulek 2021-10-08 09:10:56 UTC
My bad, I've placed bad bug id. Now it should be correct