"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
Priority: Minor
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