Re: Middleware exceptions cause other middleware to not be called

2009-04-16 Thread Glenn Maynard
On Thu, Apr 16, 2009 at 2:45 AM, Ivan Sagalaev wrote: > This is a known bug about calling request middlewares outside of core > exception handler: http://code.djangoproject.com/ticket/6094 Losing hours to a bug that's been known for over a year is massively frustrating. I'm not sure this ticket

Re: Middleware exceptions cause other middleware to not be called

2009-04-15 Thread Ivan Sagalaev
Glenn Maynard wrote: > TransactionMiddleware assumes that when process_request is called, > either process_exception or process_response is guaranteed to be > called. This isn't the case if another middleware raises an exception > first. If this happens, the call to > transaction.enter_transacti

Middleware exceptions cause other middleware to not be called

2009-04-15 Thread Glenn Maynard
TransactionMiddleware assumes that when process_request is called, either process_exception or process_response is guaranteed to be called. This isn't the case if another middleware raises an exception first. If this happens, the call to transaction.enter_transaction_management is not balanced w