Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-2994

AbstractSecurityTest#getUserManager(Root) doesn't create new instances

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.2.19, 1.3.1, 1.4
    • core
    • None

    Description

      i just happened to struggle with my own test-setup that remembers the user manager created for the specified Root in AbstractSecurityTest.getUserManager. When called with a different root later on it will return an instance associated with a wrong root instance.

      the fix could be any of the following:

      • don't remember the user manager
      • only remember instance for the root field and make sure only user mangers for the right root instance are recycled.
      • drop the Root param altogether (or make it optional)

      Attachments

        Activity

          People

            angela Angela Schreiber
            angela Angela Schreiber
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: