CMIS查询路径包含无法正常工作的号码

时间:2016-06-09 08:02:21

标签: java alfresco cmis opencmis

我正在尝试使用路径

从alfresco获取所有文档
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.chemistry.opencmis.commons.exceptions.CmisRuntimeException:05090122请求失败400 / solr4 / alfresco / cmis?wt = json& fl = DBID%2Cscore& rows = 100& df = TEXT& start = 0& loca   LE =&en_IN放大器; alternativeDic = DEFAULT_DICTIONARY&安培; cmisVersion = CMIS_1_1&安培; FQ =%7B%21afts%7DAUTHORITY_FILTER_FROM_JSON&安培; FQ =%7B%21afts%7DTENANT_FILTER_FROM_JSON           at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:487)           at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.post(AbstractAtomPubService.java:629)           at org.apache.chemistry.opencmis.client.bindings.spi.atompub.DiscoveryServiceImpl.query(DiscoveryServiceImpl.java:145)           在org.apache.chemistry.opencmis.client.runtime.SessionImpl $ 3.fetchPage(SessionImpl.java:600)           在org.apache.chemistry.opencmis.client.runtime.util.AbstractIterator.getCurrentPage(AbstractIterator.java:132)           at org.apache.chemistry.opencmis.client.runtime.util.CollectionIterator.hasNext(CollectionIterator.java:48)           在com.hs.alfresco.services.impl.HSBaseAlfrescoService.getDocumentsByPath(HSBaseAlfrescoService.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(CglibAopProxy.java:717)           在org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)           在org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)           在org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)

1 个答案:

答案 0 :(得分:3)

问题在于您的文件夹以数字开头。查看ISO9075,编码你的字符串应该可以解决问题。

http://docs.alfresco.com/4.1/references/API-JS-iso9075Encode.html