This project is archived and is in readonly mode.
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
-
Fjan September 9th, 2009 @ 01:44 PM
I have tried to reproduce this on another server without any luck, so this makes it less likely that Rails is to blame.
-
Fjan September 9th, 2009 @ 02:58 PM
I just noticed this is a dupe of [2993][https://rails.lighthouseapp.com/projects/8994/tickets/2993-first-re.... The description there is better, we can close this one.
-
CancelProfileIsBroken September 25th, 2009 @ 12:32 PM
- State changed from new to duplicate
Dupe of #2993
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>