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.

First POST to a fresh production server loses form data

#3155

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.

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

State: duplicate
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Fjan
    Fjan

    I have tried to reproduce this on another server without any luck, so this makes it less likely that Rails is to blame.

    September 9th, 2009 @ 01:44 PM

  2. Fjan
    Fjan

    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.

    September 9th, 2009 @ 02:58 PM

  3. CancelProfileIsBroken