You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by Florian Müller <fm...@apache.org> on 2012/10/11 10:26:24 UTC

Re: TCK test for getContentStream() checks for null instead of exception

 Hi Sagara,

 That's correct. The OpenCMIS high-level API catches the constraint 
 exception in this case and returns null. Therefore, the TCK tests for 
 null and not for the exception.
 The low-level API still throws the constraint exception, though.


 Florian


> Hi all,
>
> The CMIS specification says getContentStream() MUST throw a 
> constraint
> exception if the object specified by objectId does NOT have a content
> stream or rendition stream[1]. However in the TCK[2] it asserts the 
> return
> value of getContentStream() for null. Is this correct?
>
> [1] -
> 
> http://docs.oasis-open.org/cmis/CMIS/v1.0/errata-01/os/cmis-spec-v1.0-errata-01-os-complete.html#_Toc243905458
> [2] -
> 
> https://svn.apache.org/repos/asf/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/crud/SetAndDeleteContentTest.java
>
> Thanks,
> Sagara.