Project

General

Profile

Bug #376

parameter sti broke host parameter multiple assignment

Added by Ohad Levy over 8 years ago. Updated about 8 years ago.

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

Associated revisions

Revision dde34153 (diff)
Added by Paul Kelly about 8 years ago

Fixes #376 - Broken multiple assignment

History

#1 Updated by Paul Kelly about 8 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

#2 Updated by Paul Kelly about 8 years ago

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

#3 Updated by Paul Kelly about 8 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.

#4 Updated by Paul Kelly about 8 years ago

  • % Done changed from 0 to 100

#5 Updated by Ohad Levy about 8 years ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF