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

Orphan versions are not removed from test repository after CoreFeature cleanup

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0
    • Component/s: Core, Tests

      Description

      See CoreFeature#cleanupSession, the following code does not trigger the OrphanVersionRemoverListener:

      session.removeChildren(new PathRef("/"));
      

      Therefore some tests (eg. TestAuditFileSystemChangeFinder, see NXP-15421) will log the error below if ever versions have been created within the test:

       ERROR [CoreFeature] Fail to cleanupSession, repository will not be empty for the next test.
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: