Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
If a user is on a page and rights have subsequently been removed, reloading the page throws a stacktrace, rather than cleanly displaying a permission denied page.
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1. Create a user, "aaa"
2. Create a role granting All Organization permissions; add "aaa" user to this role
3. In a separate browser, login with user "aaa" and go to Organizations page
4. In the original browser (as admin), revoke all rights from user "aaa" in the UI
5. Attempt to reload the Orgs page with user "aaa"
Actual results:
ArgumentError in Organizations#index
Showing /usr/share/katello/app/views/layouts/katello.haml where line #41 raised:
Invalid level specified or item key not found
Extracted source (around line #41):
38: - else
39: #subheader.container_16
40: %nav.tab_nav
41: = render_navigation(:expand_all => true, :level => 1)
42: #maincontent.container_16
43: %nav.subnav.container_16
44: = render_navigation(:expand_all => true, :level => 2..3)
Rails.root: /usr/share/katello
Application Trace | Framework Trace | Full Trace
app/views/layouts/katello.haml:41:in `_app_views_layouts_katello_haml___153095593_70252241594080_0'
app/controllers/application_controller.rb:263:in `render_403'
app/controllers/application_controller.rb:262:in `render_403'
app/controllers/application_controller.rb:52:in `__bind_1317096489_494834'
app/controllers/application_controller.rb:460:in `call'
app/controllers/application_controller.rb:460:in `execute_rescue'
app/controllers/application_controller.rb:52:in `__bind_1317096489_494834'
Request
Parameters:
None
Show session dump
Show env dump
Response
Headers:
None
Expected results:
Cleanly handle the permission denied request
Additional info:
More cases for this bug
1) User has access to Orgs A,B, C and C is its current org. Admin revokes access to org C from the user. User when he clicks on any page will automatically be logged out with a message stating
"""
You current organization is no longer valid. It is possible that either the
organization has been deleted or your permissions revoked, please log back in to
continue .
"""
2) User has access to no orgs. Admin then provides access to orgs A, B. The user should immediately get assigned to org A just as he would reload or click any page.