[ http://jira.magnolia.info/browse/MAGNOLIA-1217?page=comments#action_12813 ] Ali Hammadi commented on MAGNOLIA-1217: ---------------------------------------
Maybe the explanation wasn't clear. I will try to give more details. In all searchlist function (for Website and DMS), I never found any using of the parameter "searchPath" (present in the class RespositorySearchListModel). So I tried to test it in my searchlistModel (which extends RespositorySearchListModel), it generates an InvalidQueryExpression when the query was executed because the expression which has been generated when searchPath was defined is incorrect. It misses a condition (OR, AND, ...) before the jcr:path instruction. So I think the method (addSelect in QueryBuilder class) which generate has to be patched to fix this problem. > RepositorySearchListModel.getSearchPath() not supported by QueryBuilder > ----------------------------------------------------------------------- > > Key: MAGNOLIA-1217 > URL: http://jira.magnolia.info/browse/MAGNOLIA-1217 > Project: Magnolia > Issue Type: Bug > Components: core > Affects Versions: 3.0 RC4 > Reporter: Ali Hammadi > Assigned To: Sameer Charles > > While using the method addSelect, it doesn't support the searchPath when it's > defined. > ERROR info.magnolia.cms.gui.controlx.list.AbstractListModel > AbstractListModel.java(getListModelIterator:80) 16.11.2006 18:16:58 can't > create the list model iterator, will return an empty list > javax.jcr.query.InvalidQueryException: Encountered "jcr:path" at line 1, > column 55. > Was expecting one of: > <EOF> > "OR" ... > "AND" ... > "ORDER" ... > > at > org.apache.jackrabbit.core.query.sql.JCRSQLQueryBuilder.createQuery(JCRSQLQueryBuilder.java:141) > at > org.apache.jackrabbit.core.query.sql.QueryBuilder.createQueryTree(QueryBuilder.java:36) > at > org.apache.jackrabbit.core.query.QueryParser.parse(QueryParser.java:53) > at > org.apache.jackrabbit.core.query.lucene.QueryImpl.<init>(QueryImpl.java:125) > at > org.apache.jackrabbit.core.query.lucene.SearchIndex.createExecutableQuery(SearchIndex.java:322) > at org.apache.jackrabbit.core.query.QueryImpl.init(QueryImpl.java:92) > at > org.apache.jackrabbit.core.SearchManager.createQuery(SearchManager.java:337) > at > org.apache.jackrabbit.core.query.QueryManagerImpl.createQuery(QueryManagerImpl.java:86) > at > info.magnolia.cms.core.search.QueryManagerImpl.createQuery(QueryManagerImpl.java:39) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.magnolia.info/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ---------------------------------------------------------------- for list details see http://www.magnolia.info/en/magnolia/developer.html ----------------------------------------------------------------
