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 3C6B57206 for ; Mon, 10 Oct 2011 14:25:52 +0000 (UTC) Received: (qmail 4612 invoked by uid 500); 10 Oct 2011 14:25:52 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 4582 invoked by uid 500); 10 Oct 2011 14:25:52 -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 4574 invoked by uid 99); 10 Oct 2011 14:25:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Oct 2011 14:25:52 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Oct 2011 14:25:50 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id DEA603009BF for ; Mon, 10 Oct 2011 14:25:29 +0000 (UTC) Date: Mon, 10 Oct 2011 14:25:29 +0000 (UTC) From: "Cedric Moitrier (Created) (JIRA)" To: dev@chemistry.apache.org Message-ID: <2080755649.14785.1318256729913.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (CMIS-446) SetAndDeleteContentTest does not propertly handle documents whose content stream is required MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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 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