[ 
https://issues.apache.org/jira/browse/CMIS-449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Florian Müller resolved CMIS-449.
---------------------------------

       Resolution: Fixed
    Fix Version/s: OpenCMIS 0.6.0
         Assignee: Florian Müller

A rendition without a content stream is rather odd and there is probably a 
server issue. But in order to align the behavior with 
Document.getContentStream() it now returns null.
                
> "rendition.getContentStream()" throws exception instead of returning null
> -------------------------------------------------------------------------
>
>                 Key: CMIS-449
>                 URL: https://issues.apache.org/jira/browse/CMIS-449
>             Project: Chemistry
>          Issue Type: Improvement
>          Components: opencmis-client
>    Affects Versions: OpenCMIS 0.5.0
>            Reporter: Ioan LUPU
>            Assignee: Florian Müller
>            Priority: Minor
>             Fix For: OpenCMIS 0.6.0
>
>
> Modified "GettingStarted":
> - Added in the right place:
> System.out.println("rendition.contentStream: " + 
> rendition.getContentStream());
> - Commented:
> //              break; // Just show the first object with
> //                     // renditions. Remove this
> //                     // Break to show them all
> - Console:
> found  testNoContent of type Filethat has renditions...
> kind: cmis:thumbnail  mimetype: image/gif     width: -1       height: -1      
> stream id: nx:icon
> Exception in thread "main" 
> org.apache.chemistry.opencmis.commons.exceptions.CmisConstraintException: No 
> content stream
>       at 
> org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.getContentStream(ObjectServiceImpl.java:442)
>       at 
> org.apache.chemistry.opencmis.client.runtime.RenditionImpl.getContentStream(RenditionImpl.java:85)
>       at xxx.test.GettingStarted.main(GettingStarted.java:859)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to