Bug 744017

Summary: User with no rights getting 500 error on Dashboard login
Product: [Retired] Katello Reporter: Corey Welton <cwelton>
Component: WebUIAssignee: Jason E. Rist <jrist>
Status: CLOSED WORKSFORME QA Contact: Katello QA List <katello-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0CC: mmccune
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-07 18:34:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Corey Welton 2011-10-06 18:38:32 UTC
Description of problem:
User with no roles/perms gets a 500 on dashboard, upon loging in

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.  Install a fresh copy of katello and wipe db if necessary[1]
2.  Login as admin and create a new user called "norights". Grant this user no permissions/roles.
3.  Logout and attempt to login as this user
  
Actual results:
Upon login, the following text on the dashboard.

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 `owner_info' for nil:NilClass


Expected results:

User gets no error

Additional info:
[1] I suppose there's a possibility that the problem is the db wipe script; I have not tried installing on a completely fresh system to see if this still occurs there.

Comment 1 Corey Welton 2011-10-07 18:34:42 UTC
This seems to have fixed itself, somewhere along the way. Closing.