jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: Escaped apostrophe in query fails
Date Mon, 25 Jun 2007 08:36:41 GMT
Amir Mistric wrote:
> /jcr:root/company//*[@jcr:primaryType='mgnl:content']//*[jcr:contains(.,'children''s
health')]
> 
> /jcr:root/company//*[@jcr:primaryType='mgnl:content']//*[jcr:contains(.,'children''s')]
> 
> /jcr:root/company//*[@jcr:primaryType='mgnl:content']//*[jcr:contains(.,'children ''
s health')]
> 
> /jcr:root/company//*[@jcr:primaryType='mgnl:content']//*[jcr:contains(.,'children ''
s')]
> 
> All fail with:
> 
> 13:50:05,744 ERROR [STDERR] javax.jcr.RepositoryException: Exception building query:
org.apache.jackrabbit.core.query.lucene.fulltext.ParseException: Lexical error at line 1,
column 11.  Encountered:
> <EOF> after : "\"s"
> 13:50:05,744 ERROR [STDERR]     at org.apache.jackrabbit.core.query.lucene.LuceneQueryBuilder.createQuery(LuceneQueryBuilder.java:174)
> 13:50:05,744 ERROR [STDERR]     at org.apache.jackrabbit.core.query.lucene.QueryImpl.execute(QueryImpl.java:145)
> 13:50:05,744 ERROR [STDERR]     at org.apache.jackrabbit.core.query.QueryImpl.execute(QueryImpl.java:139)

This is a bug in jackrabbit. See http://issues.apache.org/jira/browse/JCR-980.

regards
  marcel

Mime
View raw message