2014-03-06 93 views
1

語境

的CMIS parent操作允許一個擺脫它的ID對象的完整路徑(S)。
例如,我給/alfresco/service/cmis/s/versionStore:version2Store/i/2f4cbf7a-0f8e-4fa1-81e5-8be69eb0532e,我得到/Sites/swsdp/documentLibrary/Presentations露天CMIS家長查詢返回意外空結果

我有一個Alfresco社區4.2.e服務器。
不知道是否有關,但它是純粹外的開箱除了我enabled ChangeLog

audit.enabled=true 
audit.alfresco-access.enabled=true 
audit.cmischangelog.enabled=true 

當我下面運行"parent" CMIS request什麼發生

,我得到的迴應低於包含零的Atom項:

GET /alfresco/service/cmis/s/versionStore:version2Store/i/2f4cbf7a-0f8e-4fa1-81e5-8be69eb0532e/parents?includeAllowableActions=false&includeRelationships=none&includeRelativePathSegment=true HTTP/1.1 
User-Agent: Apache Chemistry DotCMIS 
Authorization: Basic YWRtaW46YWRtaW4= 
Host: 192.168.0.66:8080 
Connection: Keep-Alive 

HTTP/1.1 200 OK 
Server: Apache-Coyote/1.1 
Cache-Control: no-cache 
Expires: Thu, 01 Jan 1970 00:00:00 GMT 
Pragma: no-cache 
Content-Type: application/atom+xml; type=feed;charset=UTF-8 
Transfer-Encoding: chunked 
Date: Thu, 06 Mar 2014 06:57:46 GMT 

477 
<?xml version="1.0" encoding="UTF-8"?> 
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/" xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/" xmlns:alf="http://www.alfresco.org" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"> 
<author><name>admin</name></author> 
<generator version="4.2.0 (r56674-b4848)">Alfresco (Community)</generator> 
<icon>http://192.168.0.66:8080/alfresco/images/logo/AlfrescoLogo16.ico</icon> 
<id>urn:uuid:2f4cbf7a-0f8e-4fa1-81e5-8be69eb0532e-parents</id> 
<link rel="service" href="http://192.168.0.66:8080/alfresco/service/cmis"/> 
<link rel="self" href="http://192.168.0.66:8080/alfresco/service/cmis/s/versionStore:version2Store/i/2f4cbf7a-0f8e-4fa1-81e5-8be69eb0532e/parents?includeAllowableActions=false&amp;includeRelationships=none&amp;includeRelativePathSegment=true"/> 
<link rel="via" href="http://192.168.0.66:8080/alfresco/service/cmis/s/versionStore:version2Store/i/2f4cbf7a-0f8e-4fa1-81e5-8be69eb0532e"/> 
<title>text1.txt Parents</title> 
<updated>2014-03-05T16:32:44.359+09:00</updated> 
</feed> 
0 

我想我應該會出現

作爲參考,CMIS標準公頃例如request/responseparents
響應實例中包含有我要找的路徑Atom條目:

<atom:entry> 
    [...] 
    <cmisra:object xmlns:ns3="http://docs.oasis-open.org/ns/cmis/messaging/200908/"> 
     <cmis:properties> 
      [...] 
      <cmis:propertyString queryName="cmis:path" displayName="Path" localName="cmis:path" propertyDefinitionId="cmis:path"> 
       <cmis:value>/My_Folder-0-0/MultifiledFolder1</cmis:value> 

問題

爲什麼露天沒有給我任何Atom條目?

我的要求有什麼問題?我很確定這個id正確地指向了現有文件/Sites/swsdp/documentLibrary/Presentations/test1.txt

回答

2

您正在使用過時的CMIS實施不推薦使用的CMIS端點。

嘗試:

http://<host>/alfresco/api/-default-/public/cmis/versions/1.0/atom 
+0

非常感謝,確實解決了這個問題! –