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

UnrestrictedSessionRunner should not behave differently in Unit Test

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 8.2
    • Fix Version/s: 8.3
    • Component/s: Core

      Description

      Since NXP-14118 there is an extra session.save() in test mode for already unrestricted session.

      The session.save reads session invalidations from other transactions which makes unit test behave very differently than Nuxeo instance. This extra code should be removed.

      Note that the low level session (SQLSession/DBSSession) is shared by all high level session in the same transaction. It is not necessary to call session.save to load invalidation from other session in the same transaction.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 hours, 2 minutes
                  5h 2m