Return-Path: Delivered-To: apmail-chemistry-dev-archive@www.apache.org Received: (qmail 43976 invoked from network); 24 Mar 2011 04:35:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Mar 2011 04:35:46 -0000 Received: (qmail 31095 invoked by uid 500); 24 Mar 2011 04:35:46 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 31045 invoked by uid 500); 24 Mar 2011 04:35:45 -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 31029 invoked by uid 99); 24 Mar 2011 04:35:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Mar 2011 04:35:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Thu, 24 Mar 2011 04:35:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E82304AB25 for ; Thu, 24 Mar 2011 04:35:05 +0000 (UTC) Date: Thu, 24 Mar 2011 04:35:05 +0000 (UTC) From: "Andreas Toom (JIRA)" To: dev@chemistry.apache.org Message-ID: <1635737269.7814.1300941305947.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (CMIS-338) cmis:objectTypeId should have Updatability.ONCREATE MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 cmis:objectTypeId should have Updatability.ONCREATE --------------------------------------------------- Key: CMIS-338 URL: https://issues.apache.org/jira/browse/CMIS-338 Project: Chemistry Issue Type: Bug Components: opencmis-server-fileshare Affects Versions: OpenCMIS 0.3.0 Reporter: Andreas Toom I have been exploring some CMIS functionality and when I tried to create a new document I ran into some exceptions. I found a related JIRA in the opencmis-client-api component (https://issues.apache.org/jira/browse/CMIS-246) that pointed me in the right direction. I checked the TypeManager.java file in the fileshare component and noticed that the updatability flag was set to READONLY. I assumed that it should be set to ONCREATE so I tested and it worked. I got one followup problem though, in FileShareRepository.compileProperties the typeId is excluded from the incoming properties and added at the end instead and this will cause the required properties validation to fail. I did the simplest (and probably the ugliest) thing and commented out the removal of the typeId property in the loop. See the patch if you are interested. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira