[
https://issues.apache.org/jira/browse/CMIS-858?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14181204#comment-14181204
]
Florent Guillaume commented on CMIS-858:
----------------------------------------
For reference here's the output of a current (trunk) Nuxeo server:
With {{cmis:none}}:
{noformat}
curl -o - -u Administrator:Administrator
'http://localhost:8080/nuxeo/atom/cmis/default/id?id=d335d7e2-3a90-4e48-b76e-f778f9e7958b&filter=cmis%3AobjectId&includeAllowableActions=false&includeACL=false&includePolicyIds=false&includeRelationships=none&renditionFilter=cmis%3Anone'
| tidyy
{noformat}
{code:xml}
<?xml version='1.0' encoding='utf-8'?>
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/"
xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/"
xmlns:app="http://www.w3.org/2007/app">
<atom:author />
<atom:id>http://chemistry.apache.org/ZDMzNWQ3ZTItM2E5MC00ZTQ4LWI3NmUtZjc3OGY5ZTc5NThi</atom:id>
<cmisra:object>
<cmis:properties>
<cmis:propertyId propertyDefinitionId="cmis:objectId" displayName="Object
ID" localName="cmis:objectId" queryName="cmis:objectId">
<cmis:value>d335d7e2-3a90-4e48-b76e-f778f9e7958b</cmis:value>
</cmis:propertyId>
</cmis:properties>
<cmis:exactACL>false</cmis:exactACL>
</cmisra:object>
<atom:link rel="service"
href="http://localhost:8080/nuxeo/atom/cmis/default/?repositoryId=default"
type="application/atomsvc+xml" />
<atom:link rel="self"
href="http://localhost:8080/nuxeo/atom/cmis/default/entry?id=d335d7e2-3a90-4e48-b76e-f778f9e7958b"
type="application/atom+xml;type=entry"
cmisra:id="d335d7e2-3a90-4e48-b76e-f778f9e7958b" />
<atom:link rel="enclosure"
href="http://localhost:8080/nuxeo/atom/cmis/default/entry?id=d335d7e2-3a90-4e48-b76e-f778f9e7958b"
type="application/atom+xml;type=entry" />
<atom:link rel="edit"
href="http://localhost:8080/nuxeo/atom/cmis/default/entry?id=d335d7e2-3a90-4e48-b76e-f778f9e7958b"
type="application/atom+xml;type=entry" />
<atom:link rel="describedby"
href="http://localhost:8080/nuxeo/atom/cmis/default/type"
type="application/atom+xml;type=entry" />
<atom:link
rel="http://docs.oasis-open.org/ns/cmis/link/200908/allowableactions"
href="http://localhost:8080/nuxeo/atom/cmis/default/allowableactions?id=d335d7e2-3a90-4e48-b76e-f778f9e7958b"
type="application/cmisallowableactions+xml" />
<atom:link rel="up"
href="http://localhost:8080/nuxeo/atom/cmis/default/parents?id=d335d7e2-3a90-4e48-b76e-f778f9e7958b"
type="application/atom+xml;type=feed" />
<atom:link rel="edit-media"
href="http://localhost:8080/nuxeo/atom/cmis/default/content?id=d335d7e2-3a90-4e48-b76e-f778f9e7958b"
/>
<atom:link rel="http://docs.oasis-open.org/ns/cmis/link/200908/acl"
href="http://localhost:8080/nuxeo/atom/cmis/default/acl?id=d335d7e2-3a90-4e48-b76e-f778f9e7958b"
type="application/cmisacl+xml" />
<atom:link rel="http://docs.oasis-open.org/ns/cmis/link/200908/relationships"
href="http://localhost:8080/nuxeo/atom/cmis/default/relationships?id=d335d7e2-3a90-4e48-b76e-f778f9e7958b"
type="application/atom+xml;type=feed" />
</atom:entry>
{code}
With {{*}}:
{noformat}
curl -o - -u Administrator:Administrator
'http://localhost:8080/nuxeo/atom/cmis/default/id?id=d335d7e2-3a90-4e48-b76e-f778f9e7958b&filter=cmis%3AobjectId&includeAllowableActions=false&includeACL=false&includePolicyIds=false&includeRelationships=none&renditionFilter=*'
| tidyy
{noformat}
{code:xml}
<?xml version='1.0' encoding='utf-8'?>
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/"
xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/"
xmlns:app="http://www.w3.org/2007/app">
<atom:author />
<atom:id>http://chemistry.apache.org/ZDMzNWQ3ZTItM2E5MC00ZTQ4LWI3NmUtZjc3OGY5ZTc5NThi</atom:id>
<cmisra:object>
<cmis:properties>
<cmis:propertyId propertyDefinitionId="cmis:objectId" displayName="Object
ID" localName="cmis:objectId" queryName="cmis:objectId">
<cmis:value>d335d7e2-3a90-4e48-b76e-f778f9e7958b</cmis:value>
</cmis:propertyId>
</cmis:properties>
<cmis:exactACL>false</cmis:exactACL>
<cmis:rendition>
<cmis:streamId>nuxeo:icon</cmis:streamId>
<cmis:mimetype>image/gif</cmis:mimetype>
<cmis:length>1384</cmis:length>
<cmis:kind>cmis:thumbnail</cmis:kind>
<cmis:title>image.gif</cmis:title>
<cmis:height>16</cmis:height>
<cmis:width>16</cmis:width>
</cmis:rendition>
<cmis:rendition>
<cmis:streamId>nuxeo:rendition:pdf</cmis:streamId>
<cmis:mimetype>application/pdf</cmis:mimetype>
<cmis:kind>nuxeo:rendition</cmis:kind>
<cmis:title>label.rendition.pdf</cmis:title>
</cmis:rendition>
</cmisra:object>
<atom:link rel="service"
href="http://localhost:8080/nuxeo/atom/cmis/default/?repositoryId=default"
type="application/atomsvc+xml" />
<atom:link rel="self"
href="http://localhost:8080/nuxeo/atom/cmis/default/entry?id=d335d7e2-3a90-4e48-b76e-f778f9e7958b"
type="application/atom+xml;type=entry"
cmisra:id="d335d7e2-3a90-4e48-b76e-f778f9e7958b" />
<atom:link rel="enclosure"
href="http://localhost:8080/nuxeo/atom/cmis/default/entry?id=d335d7e2-3a90-4e48-b76e-f778f9e7958b"
type="application/atom+xml;type=entry" />
<atom:link rel="edit"
href="http://localhost:8080/nuxeo/atom/cmis/default/entry?id=d335d7e2-3a90-4e48-b76e-f778f9e7958b"
type="application/atom+xml;type=entry" />
<atom:link rel="describedby"
href="http://localhost:8080/nuxeo/atom/cmis/default/type"
type="application/atom+xml;type=entry" />
<atom:link
rel="http://docs.oasis-open.org/ns/cmis/link/200908/allowableactions"
href="http://localhost:8080/nuxeo/atom/cmis/default/allowableactions?id=d335d7e2-3a90-4e48-b76e-f778f9e7958b"
type="application/cmisallowableactions+xml" />
<atom:link rel="up"
href="http://localhost:8080/nuxeo/atom/cmis/default/parents?id=d335d7e2-3a90-4e48-b76e-f778f9e7958b"
type="application/atom+xml;type=feed" />
<atom:link rel="edit-media"
href="http://localhost:8080/nuxeo/atom/cmis/default/content?id=d335d7e2-3a90-4e48-b76e-f778f9e7958b"
/>
<atom:link rel="alternate"
href="http://localhost:8080/nuxeo/atom/cmis/default/content?id=d335d7e2-3a90-4e48-b76e-f778f9e7958b&streamId=nuxeo%3Aicon"
type="image/gif" cmisra:renditionKind="cmis:thumbnail" title="image.gif"
length="1384" />
<atom:link rel="alternate"
href="http://localhost:8080/nuxeo/atom/cmis/default/content?id=d335d7e2-3a90-4e48-b76e-f778f9e7958b&streamId=nuxeo%3Arendition%3Apdf"
type="application/pdf" cmisra:renditionKind="nuxeo:rendition"
title="label.rendition.pdf" />
<atom:link rel="http://docs.oasis-open.org/ns/cmis/link/200908/acl"
href="http://localhost:8080/nuxeo/atom/cmis/default/acl?id=d335d7e2-3a90-4e48-b76e-f778f9e7958b"
type="application/cmisacl+xml" />
<atom:link rel="http://docs.oasis-open.org/ns/cmis/link/200908/relationships"
href="http://localhost:8080/nuxeo/atom/cmis/default/relationships?id=d335d7e2-3a90-4e48-b76e-f778f9e7958b"
type="application/atom+xml;type=feed" />
</atom:entry>
{code}
> Unable to get rendition content - both getContentStream() and
> getRenditionDocument() return null
> -------------------------------------------------------------------------------------------------
>
> Key: CMIS-858
> URL: https://issues.apache.org/jira/browse/CMIS-858
> Project: Chemistry
> Issue Type: Bug
> Components: opencmis-client
> Affects Versions: OpenCMIS 0.12.0
> Environment: Windows 7 64 bit
> JRE 7
> CMIS repository: http://demo.nuxeo.com/nuxeo/atom/cmis
> Reporter: Sergiy Litsenko
>
> Hi All,
> Open CMIS client 0.12.0 introduced an issue - unable to get rendition content
> - both getContentStream() and getRenditionDocument() return null.
> Please note, that I'm getting valid list of renditions (e.g. I followed
> Rendition Filter setting details from developer guide)
> The issue is not reproducible in 0.11.0.
> How to reproduce:
> - use Chemistry Workbench 0.12.0 and point it to ATOM endpoint for Nuxeo demo
> server: http://demo.nuxeo.com/nuxeo/atom/cmis
> - user name: Administrator
> - password: Administrator
> 1) Navigate to Assets folder and select any image available. If not available
> - upload it using Nuxeo DAM UI - http://demo.nuxeo.com , same user name and
> password, then click on DAM tab.
> 2) Select Renditions tab in Chemistry Workbench;
> 3) Double click on any image rendition;
> 4) Error will be displayed - e.g. Content not available
> Chemistry Workbench 0.11.0 can successfully download rendition.
> P.S. I can provide java code for entire test case that uses Open CMIS java
> client API - if needed beyond above
> Cheers,
> Sergiy
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)