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 "Julian Reschke (JIRA)" <ji...@apache.org> on 2019/07/09 14:38:00 UTC

[jira] [Commented] (OAK-5949) XPath: string literals parsed as identifiers

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

Julian Reschke commented on OAK-5949:
-------------------------------------

trunk: (1.7.0) [r1793013|http://svn.apache.org/r1793013]
1.6: (1.6.3) [r1800405|http://svn.apache.org/r1800405]
1.4: (1.4.17) [r1800422|http://svn.apache.org/r1800422]
1.2: (1.2.27) [r1800602|http://svn.apache.org/r1800602]


> XPath: string literals parsed as identifiers
> --------------------------------------------
>
>                 Key: OAK-5949
>                 URL: https://issues.apache.org/jira/browse/OAK-5949
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: query
>            Reporter: Thomas Mueller
>            Assignee: Thomas Mueller
>            Priority: Critical
>              Labels: candidate_oak_1_2, candidate_oak_1_4
>             Fix For: 1.7.1, 1.2.27, 1.4.17, 1.6.3, 1.8.0
>
>
> The following query (for example) is not parsed correctly, as {{@}} is parsed as attribute prefix:
> {noformat}
> /jcr:root/home//element(*,rep:Authorizable)[jcr:like(@rep:authorizableId,'@')]
> {noformat}
> Possibly XPathToSQL2Converter should use currentTokenQuoted for this. Possibly a similar problem can occur in SQL2Parser (needs to be tested). Right now, it looks like currentTokenQuoted is never set to true; that should probably happen in read().



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)