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 669DC9821 for ; Mon, 19 Sep 2011 14:02:43 +0000 (UTC) Received: (qmail 610 invoked by uid 500); 19 Sep 2011 14:02:43 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 577 invoked by uid 500); 19 Sep 2011 14:02:43 -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 568 invoked by uid 99); 19 Sep 2011 14:02:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Sep 2011 14:02:43 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of florian.mueller@alfresco.com designates 207.126.144.125 as permitted sender) Received: from [207.126.144.125] (HELO eu1sys200aog108.obsmtp.com) (207.126.144.125) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 19 Sep 2011 14:02:34 +0000 Received: from zimbra.alfresco.com ([88.151.129.3]) by eu1sys200aob108.postini.com ([207.126.147.11]) with SMTP ID DSNKTndLZPOTDdvv0X4qTma8ti8zYbhqKFOS@postini.com; Mon, 19 Sep 2011 14:02:13 UTC Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra.alfresco.com (Postfix) with ESMTP id A2DA441405C; Mon, 19 Sep 2011 15:02:12 +0100 (BST) X-Virus-Scanned: amavisd-new at unx-d-manc4.tc.ifeltd.com Received: from zimbra.alfresco.com ([127.0.0.1]) by localhost (zimbra.alfresco.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AW18hrNAG6ak; Mon, 19 Sep 2011 15:02:12 +0100 (BST) Received: from Florian-Mullers-MacBook-Pro-2.local (unknown [194.75.202.169]) (Authenticated sender: florian.mueller) by zimbra.alfresco.com (Postfix) with ESMTP id 5A014414040; Mon, 19 Sep 2011 15:02:12 +0100 (BST) Message-ID: <4E774B63.5010401@alfresco.com> Date: Mon, 19 Sep 2011 15:02:11 +0100 From: =?ISO-8859-1?Q?Florian_M=FCller?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 To: "Weigel, Achim" , "dev@chemistry.apache.org" Subject: Re: Update Smoke Test for Document Type with Versioning References: <57FB0D12D0E5F3478D329465E18D056515ADEC0C5B@DEWDFECCR09.wdf.sap.corp> <4E64CD1F.9060802@alfresco.com> <57FB0D12D0E5F3478D329465E18D056515AE33B291@DEWDFECCR09.wdf.sap.corp> In-Reply-To: <57FB0D12D0E5F3478D329465E18D056515AE33B291@DEWDFECCR09.wdf.sap.corp> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Hi Achim, Could you please check if your server returns the PWC id when checkOut() is called? In the OpenCMIS server framework the object id is a holder parameter and has to be updated with the new id. Florian On 19/09/2011 14:41, Weigel, Achim wrote: > Hi Florian, > > I just rerun the tests with the latest build of the CMIS Workbench and the problem still occurs (see below). > > The test still tries to modify a document which is the latest version but not checked out and we allow only modifications on a private working copy. The same problem seems to be in the "Set and Delete content Test (ATOMPUB)" when deleting the content. > > > --------------------------------------------------------------- > Update Smoke Test (ATOMPUB) (0 ms) > --------------------------------------------------------------- > > UNEXPECTED_EXCEPTION: Exception: org.apache.chemistry.opencmis.commons.exceptions.CmisVersioningException: The object with id 4e77445fc4a472203fd3b5e9 is not a private working copy (AbstractSessionTest.java:151) > > Stacktrace: > > org.apache.chemistry.opencmis.commons.exceptions.CmisVersioningException: The object with id 4e77445fc4a472203fd3b5e9 is not a private working copy > at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:439) > at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.put(AbstractAtomPubService.java:593) > at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.put(AbstractAtomPubService.java:579) > at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.updateProperties(ObjectServiceImpl.java:277) > at org.apache.chemistry.opencmis.client.runtime.AbstractCmisObject.updateProperties(AbstractCmisObject.java:314) > > > > Best Regards, > Achim > > > > -----Original Message----- > From: Florian M�ller [mailto:florian.mueller@alfresco.com] > Sent: Montag, 5. September 2011 15:23 > To: dev@chemistry.apache.org > Cc: Weigel, Achim > Subject: Re: Update Smoke Test for Document Type with Versioning > > Hi Achim, > > I have modified the test a bit. It now checks out the document if that is necessary. > Please try again. > > > - Florian > > > On 05/09/2011 14:25, Weigel, Achim wrote: >> Hello, >> >> when we run the 'Update Smoke Test' from the CMIS Workbench for a object type with baseType=cmis:document and versioning isVersionable=true we get the following error: >> >> UNEXPECTED_EXCEPTION: Exception: org.apache.chemistry.opencmis.commons.exceptions.CmisVersioningException: The object with id 4e64bcc8c4a4a1645b1ec47e is not a private working copy (AbstractSessionTest.java:144) >> >> As far as I could see the updateProperties method is called on the latest version of a version series whereby the version series is currently not checked out, but we do only allow modifications on a private working copy for object types with versioning. > >> >> >> Thank you very much in advance and best regards, >> Achim >> >> >