transaction handling

Issue #216 new
Marco De Paoli
created an issue

In the case where an exception is thrown in a method of "create", Piston returns (correctly) 500 status_code, but Django (via the TransactionMiddleware) commits erroneous and potentially inconsistent data.

The problem arises because Piston catches any exception so that TransactionMiddleware's process_exception (which executes the rollback) is not called

The problem is documented also here:

Comments (0)

  1. Log in to comment