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

Alex Parvulescu edited comment on OAK-6290 at 5/31/17 12:53 PM:
----------------------------------------------------------------

[~anchela] what about using 
{{String resultPath = row.getValue(QueryImpl.JCR_PATH).getValue(Type.STRING);}} 
instead? it seems that this would work irrespective of the number of selectors?


was (Author: alex.parvulescu):
[~anchela] what about using {{String resultPath = 
row.getValue("jcr:path").toString();}} instead? it seems that this would work 
irrespective of the number of selectors?

> 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)

Reply via email to