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.

Bug 785179

Summary: NameError in Dashboard#index - undefined local variable or method `account_path'
Product: Red Hat Satellite Reporter: James Laska <jlaska>
Component: WebUIAssignee: Jason E. Rist <jrist>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.1CC: jturner, mmccune
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-27 21:10:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
/var/log/katello/production.log none

Description James Laska 2012-01-27 14:46:14 UTC
Created attachment 557872 [details]
/var/log/katello/production.log

Description of problem:

After a fresh installation and successful katello-configure, I am presented
with the following failure after successfully logging into the katello webui:

> NameError in Dashboard#index 
> 
> Showing /usr/share/katello/app/views/layouts/_header.haml where line #17 raised:
> 
> undefined local variable or method `account_path' for #<#<Class:0x7f647021cba0>:0x7f6470f382f8>

Version-Release number of selected component (if applicable):
 * candlepin-0.5.14-1.el6.src.rpm
 * katello-0.1.197-2.el6.src.rpm
 * katello-certs-tools-1.0.2-2.el6.src.rpm
 * katello-cli-0.1.44-2.el6.src.rpm
 * katello-configure-0.1.55-2.el6.src.rpm
 * katello-httpd-ssl-key-pair-1.0-1.src.rpm
 * katello-qpid-broker-key-pair-1.0-1.src.rpm
 * katello-selinux-0.1.3-1.el6.src.rpm
 * katello-trusted-ssl-cert-1.0-1.src.rpm
 * pulp-0.0.256-1.el6.src.rpm

How reproducible:
 * every time I attempt to login

Steps to Reproduce:
1. Fresh RHEL6.2 installation, then install katello-all
2. Run katello-condigure
3. Login to the web ui
  
Actual results:

From production.log ...
> Completed 500 Internal Server Error in 732ms
> 
> ActionView::Template::Error (undefined local variable or method `account_path' for #<#<Class:0x7f647021cba0>:0x7f6470f382f8>):
>     14:         = render :partial => '/layouts/org'
>     15:     %ul
>     16:       %li.hello
>     17:         = link_to account_path do
>     18:           %strong
>     19:             = current_user.username
>     20:       %li
>   app/views/layouts/_header.haml:17:in `_app_views_layouts__header_haml___997527020_70034681577780_1100670'
>   app/views/layouts/katello.haml:22:in `_app_views_layouts_katello_haml___153095593_70034677343400_222590'
>   app/controllers/application_controller.rb:229:in `render_error'
>   app/controllers/application_controller.rb:227:in `render_error'
>   app/controllers/application_controller.rb:34:in `__bind_1327656743_505022'
>   app/controllers/application_controller.rb:473:in `call'
>   app/controllers/application_controller.rb:473:in `execute_rescue'
>   app/controllers/application_controller.rb:34:in `__bind_1327656743_505022'

Expected results:

 * After successful login, I expect to see the katello dashboard

Additional info:

Comment 1 James Laska 2012-01-27 19:33:50 UTC
Also hitting this problem when testing using a newer katello build.

 * candlepin-0.5.14-1.el6.src.rpm
 * katello-0.1.200-2.el6.src.rpm
 * katello-certs-tools-1.0.2-2.el6.src.rpm
 * katello-cli-0.1.44-2.el6.src.rpm
 * katello-configure-0.1.55-2.el6.src.rpm
 * katello-httpd-ssl-key-pair-1.0-1.src.rpm
 * katello-qpid-broker-key-pair-1.0-1.src.rpm
 * katello-selinux-0.1.3-1.el6.src.rpm
 * katello-trusted-ssl-cert-1.0-1.src.rpm
 * pulp-0.0.256-1.el6.src.rpm

Comment 2 James Laska 2012-01-27 21:10:05 UTC
Yay, resolved with katello-0.1.200-3.el6.src.rpm

> * Fri Jan 27 2012 Jordan OMara <jomara> 0.1.200-3
> - Removing account_path from branded header (jomara)

Comment 3 Mike McCune 2013-08-16 18:15:16 UTC
getting rid of 6.0.0 version since that doesn't exist