Project

General

Profile

Actions

Bug #376

closed

parameter sti broke host parameter multiple assignment

Added by Ohad Levy over 13 years ago. Updated over 13 years ago.

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

Description

Processing HostsController#multiple_parameters (for 10.35.1.26 at 2010-09-12 10:50:46) [GET]
  Parameters: {"action"=>"multiple_parameters", "controller"=>"hosts"}

ActiveRecord::StatementInvalid (SQLite3::SQLException: no such column: parameters.host_id: SELECT DISTINCT name FROM "parameters" WHERE ("parameters"."host_id" IN (2,3,5,1)) ):
  app/controllers/hosts_controller.rb:229:in `multiple_parameters'
  /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
  /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
  /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
  /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
  /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
  /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
  /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
  /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
  /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
  /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'

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

Actions #1

Updated by Paul Kelly over 13 years ago

  • Status changed from New to Ready For Testing
  • Branch set to bug/376-broken-multiple-assignment

Fixed the issue and added a test

Actions #2

Updated by Paul Kelly over 13 years ago

Fixed the issue with the extra map(&:name)
Added a test for multiple parameter updates

Actions #3

Updated by Paul Kelly over 13 years ago

Removed config.gem from environment.rb for production installations
Added "require 'shoulda'" to environments/test.rb for development installations. Developers will have to install the gem by hand.

Actions #4

Updated by Paul Kelly over 13 years ago

  • % Done changed from 0 to 100
Actions #5

Updated by Ohad Levy over 13 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF