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

UnrestrictedSessionRunner use in non-pooled/transactional setting can fail

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.2 GA
    • Fix Version/s: 5.3 GA
    • Component/s: None

      Description

      When using UnrestrictedSessionRunner (or any secondary session) that does some work, if the main session expects to see the results immediately then at least one of this has to be true:
      1. we're in a JCA pooled setting, in which cas all sessions in a thread actually share the same underlying state,
      2. the secondary session has to send its invalidations through save(), and the main session has to process invalidations through save().

      The case 2. happens when not using JCA or a transaction manager, for instance with Jetty/Tomcat packaging.

      This is visible for instance when unlocking a document we don't own, or using workflows.

        Attachments

          Activity

            People

            • Assignee:
              fguillaume Florent Guillaume
              Reporter:
              fguillaume Florent Guillaume
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: