jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Hasler (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JCR-3041) Queries containing exclamation marks (!) cause a generic RepositoryException instead of a InvalidQueryException
Date Fri, 05 Aug 2011 10:17:27 GMT

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

Daniel Hasler commented on JCR-3041:
------------------------------------

Attached patch to fix the issue as described.

> Queries containing exclamation marks (!) cause a generic RepositoryException instead
of a InvalidQueryException
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: JCR-3041
>                 URL: https://issues.apache.org/jira/browse/JCR-3041
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-core
>    Affects Versions: 2.2.7
>            Reporter: Daniel Hasler
>         Attachments: jcr-3041.patch
>
>
> Trying to execute a query like "term !" results in a generic RepositoryException.
> The LuceneQueryBuilder should throw a InvalidQueryException instead of a generic RepositoryException
if he is unable to create the correct lucene query.
> I understand from the documentation, that InvalidQueryException is only thrown if there
is an unbound variable, but I receive InvalidQueryException as well if I have e.g. unbalanced
apostrophes (") in the query (which in my eyes is correct if we define the state of a query
expression that cannot be parsed correctly as invalid).
> Therefore the documentation should be fixed to state that InvalidQueryException is thrown
as well if the provided expression could not be parsed correctly (which is already true partially).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message