[ 
https://issues.apache.org/jira/browse/OAK-2647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14367348#comment-14367348
 ] 

angela commented on OAK-2647:
-----------------------------

[~bhellema], i extracted the following test case (basically a duplicate of 
{{testSelector}} in the 
{{org.apache.jackrabbit.oak.jcr.security.user.UserQueryTest}}:

{code}
    /**
     * @see <a 
href="https://issues.apache.org/jira/browse/OAK-2647";>OAK-2647</a>
     */
    @Test
    public void testAuthorizableSelector() throws RepositoryException {
        Iterator<Authorizable> result = userMgr.findAuthorizables(new Query() {
            public <T> void build(QueryBuilder<T> builder) {
                builder.setSelector(Authorizable.class);
            }
        });
        assertSameElements(result, authorizables.iterator());
    }
{code}

so far i couldn't reproduce the issue. having a quick chat with [~mduerig], we 
also looked at the new jenkins build at 
https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/ which didn't 
reveal any failure for {{UserQueryTest#testSelector}} on Java 1.8.

maybe you can provide more info or a test-case that allows me to reproduce the 
problem? thanks

> QueryBuilder.setSelector(Authorizable.class) only returns Groups when using 
> Java 1.8
> ------------------------------------------------------------------------------------
>
>                 Key: OAK-2647
>                 URL: https://issues.apache.org/jira/browse/OAK-2647
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core, query
>    Affects Versions: 1.1.7
>         Environment: Java 1.8
>            Reporter: Ben Helleman
>            Assignee: angela
>
> Using 
> org.apache.jackrabbit.api.security.user.QueryBuilder.setSelector(Authorizable.class)
>  the docs state that it should return both Groups and Users, however when 
> using Java 1.8, only Groups are returned.  
> Using Java 1.7, setSelector(Authorizable.class) works as expected.



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

Reply via email to