我正试图使用路径从露天获取所有文档
SELECT cmis:path,cmis:objectId,cmis:allowedChildObjectTypeIds
FROM cmis:folder
WHERE CONTAINS('PATH:"/app:company_home/st:sites/cm:my_tite/cm:documentLibrary/cm:PIM_x0020_Data//*"')
工作正常,但当在查询中再添加一列时,不工作
SELECT cmis:path,cmis:objectId,cmis:allowedChildObjectTypeIds
FROM cmis:folder
WHERE CONTAINS('PATH:"/app:company_home/st:sites/cm:my_site/cm:documentLibrary/cm:3600009//*"')
这是抛出异常
错误[hsRndDatasheetJob::de.hybris.platform.servicelayer.internal.jalo.ServicelayerJob](hsRndDatasheetJob)[HSLoggingAspect]原因:{}org.apache.cachemistry.opencmis.commons.exceptions.CmisRuntimeException:05090122请求失败400/solr4/alfresco/cmis?wt=json&fl=DBID%2Score&行=100&df=TEXT&start=0&locale=en_IN&alternativeDic=DEFAULT_DICTIONAR&cmisVersion=CMIS_1_1&fq=%7B%21afts%7DAUTHORITY_FILTER_FROM_JSON&fq=%7B%21afts%7DTNANT_FILTER_FROM_JSON网址:org.apache.chemistry.oopenmis.client.bindings.spi.atompub.AbstractAtomPubService.covertStatusCode(AbstractAtomPubService.java:487)网址:org.apache.chemistry.oopenmis.client.bindings.spi.atompub.AbstractAtomPubService.post(AbstractAtomPubService.java:629)网址:org.apache.chemistry.oopenmis.client.bindings.spi.atompub.DiscoveryServiceImpl.query(DiscoveryServiceImpl.java:145)网址:org.apache.chemistry.opencmis.client.runtime.SessionImpl$3.fetchPage(SessionImpl.java:600)网址:org.apache.chemistry.oopenmis.client.runtime.util.AbstractIterator.getCurrentPage(AbstractIterator.java:132)网址:org.apache.chemistry.oopenmis.client.runtime.util.CollectionTerator.hasNext(CollectionTerator.java:48)网址:com.hs.alfresco.services.impl.HSBaseAlfrescoService.getDocumentsByPath(HSBaseAl弗雷scoService.java:302)网址:com.hs.alfresco.services.impl.HSBaseAlfrescoService$$FastClassBySpringCGLIB$$ee750fc3.invoke()位于org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)网址:org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAoProxy.java:717)网址:org.springframework.aop.framework.ReflectiveMethodInvocation.prough(ReflectiveMethodInvocation.java:157)位于org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.ioke(MethodBeforeAdVICeIntercept.java:52)网址:org.springframework.aop.framework.ReflectiveMethodInvocation.prough(ReflectiveMethodInvocation.java:179)
问题是文件夹以数字开头。看看ISO9075,对字符串进行编码就可以了。
http://docs.alfresco.com/4.1/references/API-JS-iso9075Encode.html