Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Bundled rack-1.0 doesn't loaded first in Rails 2.3.2

#2255

The Rails 2.3.2 release contains a bug that was later resolved in the next commit: http://github.com/rails/rails/co...

Due to a load path bug, if a version of Rack is installed as a gem, it will be be used instead of the bundled 1.0 version that comes with Rails 2.3.2. In my case I have rack-0.9.1 installed as a gem and when submitting a form the parameters look like:

{ "post[body]" => "data" }

If I remove rack-0.9.1 or use commit 39ff550fa88da9a22d8c21ca872f5e4d0d83f8d4 which loads the bundled Rack-1.0 first, the same post will return the params hash:

{ "post" => { "body" => "data" } }

In the common case where a controller has a create action with the code @post = Post.new(params[:post]), in the current case of Rails 2.3.2, params[:post] will return nil and break the application.

Reported by Peter Kieltyka · March 16th, 2009 @ 05:07 PM

State: resolved
Milestone: 2.x
Assigned to: josh josh
Importance: none

Activity

  1. josh
    josh
    • State changed from new to resolved

    March 16th, 2009 @ 05:17 PM