This project is archived and is in readonly mode.

#3155 ✓duplicate
Fjan

First POST to a fresh production server loses form data

Reported by Fjan | September 7th, 2009 @ 10:28 AM

Just after restarting a production Mongrel if (and only if) the first request to that server is a POST the associated form data gets lost. It is not possible to write a test case since this only happens in production mode, but the production log will confirm that the posted query does not contain any data.

This bug does not occur on any subsequent requests, and it also does not occur if the first request to the server is a GET Since restarts are rare and the first request will often be a GET the bug will typically not get noticed. It is still an insidious bug since the user could be just about to submit a large form while the server was restarted and lose his work. Also, some application might not be coded to expect an empty POST and throw an error.

I'm not sure if Rails or Mongrel is to blame, but since it only happens in production mode my guess would be Rails.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages