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.
Access to pages without appropriate permissions resulted in a 500 Internal Server Error message. This fix allows users without permissions to only access systems but denies other pages with 403 Permission Denied.
Description of problem:
When a user with no rights attempts to access certain menu items (i.e., perhaps by a bookmark) that said user does not have rights to, ISEs are thrown. User should be getting permission denied messages, or at very least, it should handle the situation gracefully.
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1. Login as admin. Copy/bookmark the URL for any of the main top-level menu items -- Content Management, Systems, Organizations, etc.
2. Create a user, "norights" which has no associated roles.
3. Logout and log back in with user norights.
4. Paste in your URL or visit bookmark, to try and access some of those pages.
Actual results:
500 Internal Server Error
Sorry about that! It seems something went wrong. If you continue having trouble with this, please contact an Administrator.
You might want to log out and log back in again to clear your cookies.
Error:
undefined method `allowed_organizations' for nil:NilClass
Expected results:
Situation is handled gracefully - no ISEs.
Additional info:
Katello 049d74c361:
As a user with no assigned roles I can access only systems. All other pages I tried (directly through URL) are 403 - Permission Denied.
So I think it is fixed. What page exactly was 500?
Description of problem: When a user with no rights attempts to access certain menu items (i.e., perhaps by a bookmark) that said user does not have rights to, ISEs are thrown. User should be getting permission denied messages, or at very least, it should handle the situation gracefully. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Login as admin. Copy/bookmark the URL for any of the main top-level menu items -- Content Management, Systems, Organizations, etc. 2. Create a user, "norights" which has no associated roles. 3. Logout and log back in with user norights. 4. Paste in your URL or visit bookmark, to try and access some of those pages. Actual results: 500 Internal Server Error Sorry about that! It seems something went wrong. If you continue having trouble with this, please contact an Administrator. You might want to log out and log back in again to clear your cookies. Error: undefined method `allowed_organizations' for nil:NilClass Expected results: Situation is handled gracefully - no ISEs. Additional info: