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

Fix TestRepositoryHandler#changeUser test method

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.4.2
    • Fix Version/s: 5.5
    • Component/s: None
    • Impact type:
      API change
    • Upgrade notes:
      Hide

      changed switchUser methods (that were only changing the session context, not reopening sessions with this context) to make them return a session => renamed them openSessionAs... and remove changeUser method, that is making current injected sessions status unclear (closed/opened? in what context?):

      Show
      changed switchUser methods (that were only changing the session context, not reopening sessions with this context) to make them return a session => renamed them openSessionAs... and remove changeUser method, that is making current injected sessions status unclear (closed/opened? in what context?):

      Description

      Whenever calling AbstractSimpleConfigurationTest#changeUser, the test ends up with an error

      Caused by: org.nuxeo.ecm.core.api.WrappedException: Exception: java.lang.IllegalArgumentException. message: Repository not found: null
      	at org.nuxeo.ecm.core.api.local.LocalSession.lookupRepository(LocalSession.java:147)
      	at org.nuxeo.ecm.core.api.local.LocalSession.createSession(LocalSession.java:102)
      	... 29 more
      14:27:40,200 ERROR [CoreFeature] There are 1 open session(s) at tear down; it seems the test leaked 1 session(s).
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                atchertchian Anahide Tchertchian
                Reporter:
                atchertchian Anahide Tchertchian
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: