[
https://issues.apache.org/jira/browse/CMIS-446?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Florian Müller resolved CMIS-446.
---------------------------------
Resolution: Fixed
Fix Version/s: OpenCMIS 0.6.0
Assignee: Florian Müller
Fixed.
> SetAndDeleteContentTest does not propertly handle documents whose content
> stream is required
> --------------------------------------------------------------------------------------------
>
> Key: CMIS-446
> URL: https://issues.apache.org/jira/browse/CMIS-446
> Project: Chemistry
> Issue Type: Bug
> Components: tck
> Affects Versions: OpenCMIS 0.5.0
> Reporter: Cedric Moitrier
> Assignee: Florian Müller
> Fix For: OpenCMIS 0.6.0
>
>
> According to CMIS specification, the Repository MUST throw a constraint
> exception if the Object's Object-Type definition "contentStreamAllowed"
> attribute is set to "required".
> Running SetAndDeleteContentTest on a document whose content stream is
> required fails due to a CmisConstraintException thrown by deleteContentStream.
> To properly handle this scenario, one can either:
> - catch CmisConstraintException thrown by deleteContentStream
> - check the value of contentStreamAllowed for the target object prior to
> calling deleteContentStream, and delete content only if it is not required
--
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