jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Mueller (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OAK-4658) Outer join: name(b) and localname(b) can throw a NPE
Date Wed, 10 Aug 2016 10:20:20 GMT

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

Thomas Mueller commented on OAK-4658:
-------------------------------------

http://svn.apache.org/r1755708 (trunk)

> Outer join: name(b) and localname(b) can throw a NPE
> ----------------------------------------------------
>
>                 Key: OAK-4658
>                 URL: https://issues.apache.org/jira/browse/OAK-4658
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: query
>            Reporter: Thomas Mueller
>            Assignee: Thomas Mueller
>             Fix For: 1.5.8, 1.4.7
>
>
> Outer join queries with a condition of "name(joinSelector) = 'x'" or "localname(joinSelector)
= 'x'" can result in a NullPointerException. This is because the code doesn't take the "no-match"
case into account (that the joined selector doesn't have a node). Example queries:
> {noformat}
> select a.[jcr:path] from [nt:base] as a 
>   left outer join [nt:base] as b on ischildnode(b, a)
>   where name(b) = 'b'
> select a.[jcr:path] from [nt:base] as a 
>   left outer join [nt:base] as b on ischildnode(b, a)
>   where localname(b) = 'b'
> {noformat}



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

Mime
View raw message