Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-19118

Better control TransactionManagement in REST

    XMLWordPrintable

    Details

    • 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

      Description

      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

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: