You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Davide Giannella (JIRA)" <ji...@apache.org> on 2015/06/25 15:33:05 UTC

[jira] [Closed] (OAK-2994) AbstractSecurityTest#getUserManager(Root) doesn't create new instances

     [ https://issues.apache.org/jira/browse/OAK-2994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davide Giannella closed OAK-2994.
---------------------------------

Bulk close for 1.3.1

> AbstractSecurityTest#getUserManager(Root) doesn't create new instances
> ----------------------------------------------------------------------
>
>                 Key: OAK-2994
>                 URL: https://issues.apache.org/jira/browse/OAK-2994
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: core
>            Reporter: angela
>            Assignee: angela
>            Priority: Minor
>             Fix For: 1.3.1
>
>
> 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)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)