Project

General

Profile

Actions

Bug #916

closed

Incorrect fact entries in the db breaks facts view

Added by Kal McFate over 13 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Processing FactValuesController#index (for 172.16.105.50 at 2011-05-19 13:10:11) [GET]
Parameters: {"action"=>"index", "controller"=>"fact_values"}
Rendering template within layouts/application
Rendering fact_values/index

ActionView::TemplateError (host_facts_url failed to generate from {:host_id=>nil, :action=>"index", :controller=>"fact_values"}, expected: {:action=>"index", :controller=>"fact_values"}, diff: {:host_id=>nil}) on line #18 of app/views/fa
ct_values/index.html.erb:
15: <% unless params[:host_id] ->
16: <td>
17: <
= link_to(h(fact_value.host.nil? ? "N/A" : fact_value.host),
18: host_facts_path(:host_id => fact_value.host),
19: :title => "Show host") ></td>
20: <
end %>
21: <td>

(eval):17:in `host_facts_path'
app/views/fact_values/index.html.erb:18
app/views/fact_values/index.html.erb:12:in `each'
app/views/fact_values/index.html.erb:12
passenger (2.2.11) lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
passenger (2.2.11) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:418:in `start_request_handler'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:358:in `handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/utils.rb:184:in `safe_fork'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:354:in `handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:163:in `start'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:213:in `start'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'

Rendering /usr/share/foreman/public/500.html (500 Internal Server Error)

Actions

Also available in: Atom PDF