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

WebEngine must always be called in a transaction

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.10
    • Component/s: WebEngine
    • Tags:
    • Upgrade notes:
      Hide

      Extension point request-configuration of org.nuxeo.ecm.webengine.WebEngineComponent is now obsolete, a transaction will always be started when calling a WebEngine endpoint.

      Show
      Extension point request-configuration of org.nuxeo.ecm.webengine.WebEngineComponent is now obsolete, a transaction will always be started when calling a WebEngine endpoint.
    • Sprint:
      nxFG 8.4.1

      Description

      Some WebEngine URLs may be marked <path autoTx="false"> but this causes incorrect execution because WebEngine may acquire a CoreSession (see trace in comment) and this should not be done without a transaction.

      The solution is to always make WebEngine start a transaction. Endpoints that don't need one can simply commit the transaction, and re-start a new one before returning.

      Therefore we remove the request-configuration extension point (and WARN if it's used.)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: