chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Vasiliev (JIRA)" <>
Subject [jira] [Commented] (CMIS-588) Xpath query errors
Date Mon, 15 Oct 2012 12:48:05 GMT


Ivan Vasiliev commented on CMIS-588:

It looks like an issue only for modeshape implementation. The modeshape doesn't support more
than two criteria within the xpath query. Anyway the xpath searching is deprecated for JCR
2.0 and the issue can be marked somehow as ignored. 
Inside org.modeshape.jcr.xpath.XPathParser#parseExpr(..) you can see unsupported exception.

Original JCR statement: 
SELECT cmis:baseTypeId,cmis:creationDate,cmis:name,cmis:objectId,cmis:objectTypeId FROM cmis:document
WHERE cmis:name LIKE 'a%' ORDER BY cmis:creationDate

Converted statement to xpath format: 
/jcr:root//element(*,nt:file)[(@jcr:mixinTypes = 'mix:simpleVersionable') and jcr:like(fn:name(),
'a%')]order by jcr:content/@jcr:created ascending

> Xpath query errors
> ------------------
>                 Key: CMIS-588
>                 URL:
>             Project: Chemistry
>          Issue Type: Sub-task
>          Components: opencmis-server-jcr
>    Affects Versions: OpenCMIS 0.9.0
>            Reporter: Ivan Vasiliev
> FAILURE: The query should return exactly one result but returned 0! (
>     INFO: expected: 1 / actual: 0
> FAILURE: The query should return the root folder but does not! (
> {code}
> UNEXPECTED_EXCEPTION: Exception: org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException:

> The xpath query 
> "/jcr:root//element(*,nt:file)[(@jcr:mixinTypes = 'mix:simpleVersionable') 
> and jcr:like(fn:name(), 'a%')]order by jcr:content/@jcr:created ascending" 
> is not well-formed: Multiple XPath expressions are not supported (
> {code} 

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message