Make doc.getContentStream return null when there's no content stream
--------------------------------------------------------------------
Key: CMIS-253
URL: https://issues.apache.org/jira/browse/CMIS-253
Project: Chemistry
Issue Type: Improvement
Affects Versions: 0.1.0-incubating
Reporter: Florent Guillaume
Assignee: Florent Guillaume
Fix For: 0.2.0-incubating
The domain model says that getContentStream should throw a
CmisConstraintException when there is no content stream or rendition stream.
For the bindings this should mean CmisConstraintException, although the AtomPub
bindings currently return a CmisNotSupportedException due to the missing link.
For the session I think doc.getContentStream() should return null in that case
instead of throwing.
The other exceptions would be let through. Only for the case where the
repository returns a non-specified CmisConstraintException would we have an
ambiguity, but I don't think it would be problematic as the end-result would
still be the same: no content stream available.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.