Bug 1850355

Summary: Auth Source Role Filters are not working in Satellite 6.8
Product: Red Hat Satellite Reporter: Omkar Khatavkar <okhatavk>
Component: Users & RolesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Peter Ondrejka <pondrejk>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.8.0CC: ehelms, mhulan, oezr, pcreech, tbrisker
Target Milestone: 6.8.0Keywords: Triaged
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: foreman-2.1.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 13:03:32 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 Omkar Khatavkar 2020-06-24 06:55:53 UTC
Description of problem:
Auth Source Role Filters are not working in Satellite 6.8 

Version-Release number of selected component (if applicable):
Satellite 6.8 Snap 5  

How reproducible:
Always

Steps to Reproduce:
1. Create a Role and Add all Auth Souce Filters 
2. Create new User and add that role to that user 
3. Try to access the page Auth Source Page from that newly created user   

Actual results:
Not able to see the auth sources page and getting 500 internal server error 

Expected results:
User should able to see the auth source page 


Additional info:
2020-06-24T02:44:56 [I|app|3c5354eb] Started GET "/auth_sources" for 127.0.0.1 at 2020-06-24 02:44:56 -0400
2020-06-24T02:44:56 [I|app|3c5354eb] Processing by AuthSourcesController#index as HTML
2020-06-24T02:44:56 [I|app|3c5354eb] Completed 500 Internal Server Error in 52ms (ActiveRecord: 8.6ms | Allocations: 10383)
2020-06-24T02:44:56 [F|app|3c5354eb]   
NameError (undefined method `invalid_search_query' for class `#<Class:#<AuthSourcesController:0x00007ff3cb5fca00>>'):
  
katello (3.16.0.rc2) lib/katello/middleware/event_daemon.rb:10:in `call'
lib/foreman/middleware/telemetry.rb:10:in `call'
lib/foreman/middleware/catch_json_parse_errors.rb:9:in `call'
lib/foreman/middleware/logging_context_session.rb:22:in `call'
lib/foreman/middleware/logging_context_request.rb:11:in `call'
katello (3.16.0.rc2) lib/katello/prevent_json_parsing.rb:12:in `call'

Comment 4 Peter Ondrejka 2020-09-03 08:21:05 UTC
Verified on Satellite 6.8 snap 13, the user with auth source permissions can access the auth source page as expected.

Comment 7 errata-xmlrpc 2020-10-27 13:03:32 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Satellite 6.8 release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:4366