Project

General

Profile

Actions

Bug #715

closed

Searching in yaml returns 500

Added by Dis Connect about 13 years ago. Updated almost 13 years ago.

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

Description

Taking a (working) search url from the browser and adding &format=yaml returns 500. (Worked a few weeks ago.) This also happens if I strip the url down to only the populated field (hostname like)

Processing HostsController#index to yaml (for 10.0.5.128 at 2011-03-07 08:54:01) [GET]
Parameters: {"commit"=>"Go", "format"=>"yaml", "via"=>"fact_values_", "tab_name"=>"", "action"=>"index", "controller"=>"hosts", "search"=>{"name_like"=>"test", "alerts_disabled"=>"0", "puppetclasses_id_eq"=>"", "fact_values_fact_name_id_eq"=>"", "order"=>"", "hostgroup_id_eq"=>""}}

ActiveRecord::MissingAttributeError (missing attribute: hostgroup_id):
app/controllers/hosts_controller.rb:573:in `render_hosts'
app/controllers/hosts_controller.rb:560:in `render_hosts'
app/controllers/hosts_controller.rb:30:in `index'
/usr/lib/ruby/1.8/mongrel.rb:159:in `process_client'
/usr/lib/ruby/1.8/mongrel.rb:158:in `each'
/usr/lib/ruby/1.8/mongrel.rb:158:in `process_client'
/usr/lib/ruby/1.8/mongrel.rb:285:in `run'
/usr/lib/ruby/1.8/mongrel.rb:285:in `initialize'
/usr/lib/ruby/1.8/mongrel.rb:285

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


Related issues 1 (0 open1 closed)

Follows Foreman - Feature #719: Add new search functionailyClosedAmos Benari03/09/2011Actions
Actions #1

Updated by Ohad Levy about 13 years ago

  • Target version set to 0.3
Actions #2

Updated by Ohad Levy almost 13 years ago

  • Status changed from New to Closed
  • Assignee set to Ohad Levy

implemented as part of #719

Actions

Also available in: Atom PDF