Alfresco CMIS parents query returning unexpected empty result -


context

the cmis parent operation allows 1 full path(s) of object id.
instance, give /alfresco/service/cmis/s/versionstore:version2store/i/2f4cbf7a-0f8e-4fa1-81e5-8be69eb0532e , /sites/swsdp/documentlibrary/presentations.

i have alfresco community 4.2.e server.
not sure if relevant purely out-of-the-box except enabled changelog:

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

what occurs

when run "parent" cmis request below, response below contains 0 atom entries:

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 

what think should occur

for reference, cmis standard has example request/response parents.
example response contains atom entry has path looking for:

<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> 

question

why alfresco not giving me atom entry?

what wrong request? pretty sure id refers correctly existing file /sites/swsdp/documentlibrary/presentations/test1.txt.

you using deprecated cmis endpoint outdated cmis implementation.

try:

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

Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -