Bug 785179 - NameError in Dashboard#index - undefined local variable or method `account_path'
Summary: NameError in Dashboard#index - undefined local variable or method `account_path'
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: WebUI
Version: 6.0.1
Hardware: Unspecified
OS: Unspecified
unspecified
high vote
Target Milestone: Unspecified
Assignee: Jason E. Rist
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-27 14:46 UTC by James Laska
Modified: 2019-09-26 13:29 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-27 21:10:05 UTC
Target Upstream Version:


Attachments (Terms of Use)
/var/log/katello/production.log (134.26 KB, text/plain)
2012-01-27 14:46 UTC, James Laska
no flags Details

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


Note You need to log in before you can comment on or make changes to this bug.