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.

POST requests broken on Passenger

#1767

Given a brand new rails project:


rails viewtest
cd viewtest
rake rails:freeze:edge
rake rails:update:application_controller
script/generate controller test

app/view/test/index.html.erb:


<% form_tag do %>
  <%= submit_tag 'Go' %>
<% end %>

Minimal passenger configuration:


<VirtualHost *:80>
  ServerName viewtest.local
  DocumentRoot "/Users/sam/viewtest/public"

  <Directory "/Users/sam/viewtest/public">
    Order allow,deny
    Allow from all
  </Directory>
</VirtualHost>

GET /test works. Any POST to /test (submitting the form) breaks. development.log with backtrace is attached. No issues running through script/server however.

This seems to have been caused by this commit.

Reported by Sam Pohlenz · January 15th, 2009 @ 10:59 PM

State: resolved
Milestone: none
Assigned to: josh josh
Importance: none

Activity

  1. James Brooks
    James Brooks
    1. I can replicate this given the procedure above with the same error, I am running:

    Mac OS X 10.5.5 rails 2.2.2 (though frozen to edge as per procedure) passenger 2.0.6 rack 0.9.1

    January 15th, 2009 @ 11:23 PM

  2. josh
    josh
    • Milestone cleared.
    • State changed from new to open

    January 16th, 2009 @ 03:22 AM

  3. Repository
    Repository
    • State changed from open to resolved

    (from [29e7a0242853a5e102b6846b87723fc26a1ffb08]) Ensure any method sent to RewindableIO reads the original IO object [#1767 POST requests broken on Passenger state:resolved] http://github.com/rails/rails/co...

    January 17th, 2009 @ 05:10 PM