[
https://issues.apache.org/jira/browse/JCR-4042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15601928#comment-15601928
]
Vikas Saurabh commented on JCR-4042:
------------------------------------
[~reschke],
bq. Let's just treat "\something" as "something" consistently.
That's consistent with current patch. What I was trying to point out was that
behavior of {{:}} is unique wrt to other (special or non-special) characters in
the sense:
| |*escaped*|*non escaped*|
|*colon within* double quotes| literal | literal |
|*double-quotes within* double quotes| literal | end-double-quotes |
|*back-slash within* double quotes| literal | escape-sequence-prefix |
|*other within* double quotes| literal | literal |
|*colon outside* double quotes| literal | field-delimeter |
|*double-quotes outside* double quotes| literal | begin-double-quotes |
|*back-slash outside* double quotes| literal | escape-sequence-prefix |
|*other outside* double quotes| literal | literal |
i.e. unescaped {{:}} outside of quotes behaves different within double quotes
as compared to without (other special characters always need to be escaped to
be taken literally... otoh, other non-special-characters are always taken
literally).
> Adding Escape Character in GQL
> ------------------------------
>
> Key: JCR-4042
> URL: https://issues.apache.org/jira/browse/JCR-4042
> Project: Jackrabbit Content Repository
> Issue Type: Bug
> Components: jackrabbit-jcr-commons
> Reporter: Ankit Agarwal
> Attachments: JCR-4042.take1.patch
>
>
> Currently GQL does not have a escape character. Adding the escape character
> will help in special character cases for example where a search term contains
> both colon(:) and quote(") character.
> for example search string is foo:bar, if term is put in quote "foo:bar" and
> this whole term is considered as a single search value.
> But in case user need to search foo"abc:bar then putting this term in quotes
> won't work. But if GQL will have a escape character, then user can search
> this term using escape character.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)