[
https://issues.apache.org/jira/browse/OAK-6290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16030955#comment-16030955
]
Thomas Mueller commented on OAK-6290:
-------------------------------------
Typo here (should be {{>}} I guess)
{noformat}
if (selectorNames.length >- 1) {
{noformat}
By the way, I'm open to improving the (slightly weird) API, maybe add
"getFirstPath()" or something like that.
> 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
> 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)