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

Prevent calling TransactionHelper.registerSynchronization outside a transaction

    XMLWordPrintable

    Details

    • Type: Clean up
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.10
    • Component/s: Runtime
    • Tags:
    • Sprint:
      nxFG 8.4.1
    • Story Points:
      2

      Description

      TransactionHelper.registerSynchronization is called by callers expecting to register a handler to do cleanup at transaction end. If there is no transaction active, then it will never be called and the caller's expectation of cleanup will be violated.

      So if there is no transaction active (or marked rollback) at the time when TransactionHelper.registerSynchronization is called, we should throw an exception.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: