Project

General

Profile

Bug #715

Searching in yaml returns 500

Added by Dis Connect over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
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

Follows Foreman - Feature #719: Add new search functionailyClosed2011-03-09

History

#1 Updated by Ohad Levy over 9 years ago

  • Target version set to 0.3

#2 Updated by Ohad Levy over 9 years ago

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

implemented as part of #719

Also available in: Atom PDF