-
Type: Improvement
-
Status: Resolved
-
Priority: Minor
-
Resolution: Won't Fix
-
Affects Version/s: 7.10, 8.1
-
Fix Version/s: None
-
Component/s: Automation, Rest API, WebEngine
By default the org.nuxeo.ecm.platform.web.common.requestcontroller.filter.NuxeoRequestControllerFilter does handle the TransactionManagement and it particular it does take care about the Rollback in terms of Exception.
However, if the underlying resources does handle the Exception and decides to send a specific response to the client, the org.nuxeo.ecm.platform.web.common.requestcontroller.filter.NuxeoRequestControllerFilter will not see the Exception and will not do the Rollback.
To overcome this we need alternative ways to hint the org.nuxeo.ecm.platform.web.common.requestcontroller.filter.NuxeoRequestControllerFilter to do the RollBack :
- http return code
- custom response attribute