Project

General

Profile

Actions

Bug #10132

closed

User assigned 'viewer' role causes httpd 500 internal error when browsing Foreman UI

Added by J C over 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

I created a new user. Assigned the 'viewer' role. After login, browsing off the dashboard page causes the following:

2015-04-14 13:59:15 [I] Processing by DashboardController#index as HTML
2015-04-14 13:59:15 [I] Rendered dashboard/welcome.html.erb within layouts/application (18.0ms)
2015-04-14 13:59:15 [I] Rendered home/_user_dropdown.html.erb (3.0ms)
2015-04-14 13:59:15 [I] Read fragment views/tabs_and_title_records-4 (0.1ms)
2015-04-14 13:59:15 [I] Rendered home/_topbar.html.erb (168.0ms)
2015-04-14 13:59:15 [I] Rendered layouts/base.html.erb (170.6ms)
2015-04-14 13:59:15 [I] Filter chain halted as :welcome rendered or redirected
2015-04-14 13:59:15 [I] Completed 200 OK in 231ms (Views: 207.4ms | ActiveRecord: 4.2ms)
2015-04-14 13:59:19 [I] Processing by Katello::DashboardController#index as HTML
2015-04-14 13:59:19 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.3.0/app/views/katello/common/_helptip_button.html.haml (0.1ms)
2015-04-14 13:59:19 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.3.0/app/views/katello/common/_helptip.html.haml (0.0ms)
2015-04-14 13:59:19 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.3.0/app/views/katello/dashboard/index.html.haml within katello/layouts/katello (9.9ms)
2015-04-14 13:59:19 [I] Completed 500 Internal Server Error in 41ms
2015-04-14 13:59:19 [F]
NameError (undefined local variable or method `anonymous_admin' for #<User:0x0000000afeaf60>):
app/controllers/concerns/application_shared.rb:13:in `set_timezone'
lib/middleware/catch_json_parse_errors.rb:9:in `call'

Actions

Also available in: Atom PDF