I'm using an exception notification plugin which sends me an email
whenever an exception is raised on the rails server. Regularly I'm
getting exception reports due to raising a PermissionDenied exception
when a user has no access or because rails complains about an invalid
I can never reproduce these. And in 99% of the cases it works fine for
our users, but there's a 1% for whom it apparently fails.
These exceptions are always due to an action triggered by an ajax
The content of the exception report is always something like below.
The thing I find odd is that the HTTP_COOKIE indicates the user is
logged in, but the session section reports a session_id of nil. I.e.,
the code will see the user as logged out, and raise an access denied
In my log I can see that subsequent (non-Ajax) requests from the same
user do work fine.
I also notice that all exception reports are always from MSIE6.0 and
I'm using jQuery.
I was wondering if anyone else has seen issues like this. Is there a
known cause and/or workaround / solution?