Bug 1112563
Summary: | roles: content-search doesn't show packages to normal user, who has permission to view_product | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Sachin Ghai <sghai> |
Component: | Users & Roles | Assignee: | Eric Helms <ehelms> |
Status: | CLOSED ERRATA | QA Contact: | Sachin Ghai <sghai> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.0.3 | CC: | bbuckingham, cwelton, jmontleo |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | http://projects.theforeman.org/issues/9554 | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-08-12 05:09:51 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: | |||
Attachments: |
Created attachment 911663 [details]
assigned perms along from selected resources to a normal user
Created redmine issue http://projects.theforeman.org/issues/9554 from this bug This was actually broken in all cases and a regression from a prior bug fix. https://github.com/Katello/katello/pull/5050 Moving to POST since upstream bug http://projects.theforeman.org/issues/9554 has been closed ------------- Eric Helms Applied in changeset commit:katello|2162948c05f28f830dfe4545b0f07fab88db55d8. Verified with sat6.1 beta snap9 ( Satellite-6.1.0-RHEL-6-20150331.1). I created a user with all those permissions given in the attachment. And I can see the packages from selected repo via a normal user who has view_product permission. And I don't see any error in firebug. Please see the attachment. Moving this to verified. Created attachment 1010034 [details]
I can see packages under content-search page via normal user who has view-product permission
This bug is slated to be released with Satellite 6.1. 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, 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-2015:1592 |
Created attachment 911662 [details] rotating spinner along with type error in firebug Description of problem: I was trying to view contents via content search. I can see content-views, products, repositories etc. But when I tried to view packages, spinner starts rotating on webUI and keep on rotating. Also, Firebug raises error: TypeError: item is null ..."active-result")?$(evt.target):$(evt.target).parents(".active-result").first();i... Version-Release number of selected component (if applicable): sat6 beta snap10 compose2 How reproducible: always Steps to Reproduce: 1. create a role via admin user and add permissions as per the attached screenshot 2. go to content-search and search or packages ( Make sure firebug is ON) 3. Actual results: TypeError: item is null ..."active-result")?$(evt.target):$(evt.target).parents(".active-result").first();i... Expected results: packages should be listed. Additional info: I didn't see any other resource type who have permission to view packages. following request made while searching for packages: Processing by Katello::ContentSearchController#packages as */* Parameters: {"repos"=>{"search"=>""}, "packages"=>{"search"=>""}, "content_type"=>"packages", "mode"=>"all", "environments"=>[1], "content_search"=>{"repos"=>{"search"=>""}, "packages"=>{"search"=>""}, "content_type"=>"packages", "mode"=>"all", "environments"=>[1]}} Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/views/katello/content_search/_container_hover.html.haml (245.5ms) Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/views/katello/content_search/_container_hover.html.haml (46.6ms) Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/views/katello/content_search/_repo_hover.html.haml (18.9ms) Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/views/katello/content_search/_repo_hover.html.haml (19.5ms) Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/views/katello/content_search/_container_hover.html.haml (25.4ms) Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/views/katello/content_search/_container_hover.html.haml (23.2ms) Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/views/katello/content_search/_repo_hover.html.haml (17.1ms) Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/views/katello/content_search/_repo_hover.html.haml (205.3ms) Completed 200 OK in 1363ms (Views: 624.6ms | ActiveRecord: 34.9ms)