jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ankit Agarwal (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JCR-3954) Searches with backslash \ cause expection
Date Wed, 23 Mar 2016 06:56:25 GMT

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

Ankit Agarwal commented on JCR-3954:
------------------------------------

adding one more condition [mentioned here|https://github.com/apache/jackrabbit/blob/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/Text.java#L540]
will solve the problem
something like this.

{code:java}
if (c == '!' || c == '(' || c == ':' || c == '^'
            || c == '[' || c == ']' || c == '{' || c == '}' || c == '?' || c == '\\') {
            sb.append('\\');
        }
{code}




> Searches with backslash \ cause expection
> -----------------------------------------
>
>                 Key: JCR-3954
>                 URL: https://issues.apache.org/jira/browse/JCR-3954
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-jcr-commons
>    Affects Versions: 2.12.1
>            Reporter: Ankit Agarwal
>
> while creating a query with '/' it creates an exception. 



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

Mime
View raw message