crash parsing WHERE NOT ecm:path STARTSWITH '/some/path'
--------------------------------------------------------

                 Key: NXP-1816
                 URL: http://jira.nuxeo.org/browse/NXP-1816
             Project: Nuxeo Enterprise Platform 5
          Issue Type: Bug
            Reporter: Olivier Grisel
            Assignee: Georges Racinet
            Priority: Major
             Fix For: 5.1.3, 5.2 M1


Go to the /nuxeo/search/search_form.faces  view as Administrator and type the 
following NXQL query:


  SELECT * FROM Document WHERE NOT ecm:path STARTSWITH '/some/path'

You will get the following error:

Caused by: org.nuxeo.ecm.core.api.WrappedException: Exception: 
java.lang.ClassCastException. message: 
org.nuxeo.ecm.core.query.sql.model.Predicate
        at 
org.nuxeo.ecm.core.search.backend.compass.QueryConverter.wherePredicate(QueryConverter.java:662)
        at 
org.nuxeo.ecm.core.search.backend.compass.QueryConverter.whereClause(QueryConverter.java:152)
        at 
org.nuxeo.ecm.core.search.backend.compass.QueryConverter.toCompassQuery(QueryConverter.java:105)
        at 
org.nuxeo.ecm.core.search.backend.compass.CompassBackend.searchQuery(CompassBackend.java:436)
        at 
org.nuxeo.ecm.core.search.backend.compass.CompassBackend.searchQuery(CompassBackend.java:423)
        at 
org.nuxeo.ecm.core.search.service.SearchServiceImpl.searchQuery(SearchServiceImpl.java:629)


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
ECM-tickets@lists.nuxeo.com
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to