Return-Path: X-Original-To: apmail-chemistry-dev-archive@www.apache.org Delivered-To: apmail-chemistry-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1BCE3DB48 for ; Thu, 11 Oct 2012 06:58:16 +0000 (UTC) Received: (qmail 63556 invoked by uid 500); 11 Oct 2012 06:58:15 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 63281 invoked by uid 500); 11 Oct 2012 06:58:10 -0000 Mailing-List: contact dev-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list dev@chemistry.apache.org Received: (qmail 63251 invoked by uid 99); 11 Oct 2012 06:58:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Oct 2012 06:58:09 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sagara89dev@gmail.com designates 74.125.82.44 as permitted sender) Received: from [74.125.82.44] (HELO mail-wg0-f44.google.com) (74.125.82.44) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Oct 2012 06:58:04 +0000 Received: by mail-wg0-f44.google.com with SMTP id dr13so768345wgb.13 for ; Wed, 10 Oct 2012 23:57:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=60MwrjYr9crXgPHXyhuQAwTHfsFJlw2TlqMyFdowr6I=; b=fySnxTtFBCS/LIUKo6UoTD+DsiEfz0GHUof5j997iHYj4yBKYIqB0hLpJq3l+Ruivx EruD2yn8H84D9kxCxUHhx61rSFSXHxFqKaYN1CwkpsrKBU+4Cb3GsHs49OjXoC4KG7GP MrF/l4/CRhTh2EXjIp08MK3pRC+Z/efYgnNVtvx8J3fmJHmlXk++k7Mp7+j+RYmbAgg1 nQfsJum+B76qYKmA4nbwqIvWVobVfxq3tJEzNomuQot2E/OpA+o+LAKLdbcbvlpwV8fw SoL6UA753oOhitJzHUM0uW/H1ql/aOWas7+ba1Z7IWKvrTAPCdUiztKI1HiD75HBS4vA qtQA== MIME-Version: 1.0 Received: by 10.180.100.101 with SMTP id ex5mr18354416wib.16.1349938663284; Wed, 10 Oct 2012 23:57:43 -0700 (PDT) Received: by 10.194.61.116 with HTTP; Wed, 10 Oct 2012 23:57:43 -0700 (PDT) Date: Thu, 11 Oct 2012 12:27:43 +0530 Message-ID: Subject: TCK test for getContentStream() checks for null instead of exception From: Sagara Paranagama To: dev@chemistry.apache.org Content-Type: multipart/alternative; boundary=f46d0442811a7e605b04cbc31657 X-Virus-Checked: Checked by ClamAV on apache.org --f46d0442811a7e605b04cbc31657 Content-Type: text/plain; charset=ISO-8859-1 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. --f46d0442811a7e605b04cbc31657--