Bug #9554
closedroles: content-search doesn't show packages to normal user, who has permission to view_product
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1112563
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)
Updated by Eric Helms almost 10 years ago
- Target version set to 67
- Translation missing: en.field_release set to 31
- Triaged changed from No to Yes
Updated by The Foreman Bot almost 10 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/5050 added
- Pull request deleted (
)
Updated by Eric Helms almost 10 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|2162948c05f28f830dfe4545b0f07fab88db55d8.