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 "angela (JIRA)" <ji...@apache.org> on 2017/05/31 14:47:04 UTC

[jira] [Resolved] (OAK-6290) UserQueryManager.findAuthorizables fails with IllegalArgumentException when there are multiple selectors

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

angela resolved OAK-6290.
-------------------------
       Resolution: Fixed
    Fix Version/s: 1.7.1
                   1.8

Committed revision 1797048.

thanks [~alex.parvulescu] and [~tmueller] for your help. very much appreciated!

> UserQueryManager.findAuthorizables fails with IllegalArgumentException when there are multiple selectors
> --------------------------------------------------------------------------------------------------------
>
>                 Key: OAK-6290
>                 URL: https://issues.apache.org/jira/browse/OAK-6290
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>            Reporter: angela
>            Assignee: angela
>             Fix For: 1.8, 1.7.1
>
>         Attachments: OAK-6290.patch
>
>
> while writing test cases i managed to create a query that results in {{IllegalArgumentException}} because there were multiple selectors but {{ResultRowToAuthorizable}} would call {{ResultRow.getPath()}}, without specifying the selector.
> [~tmueller] instructed me to make use of {{Result.getColumnSelectorNames}} to spot the cases where there are multiple selector names.
> [~alex.parvulescu], i will attach a patch and would appreciate if you could take a look.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)