Hi Achim, Is the updatability of cmis:name set to "whencheckedout"? If it is set to "readwrite", a client (and the TCK) must assume that it can be updated without check out. Also make sure that the type you use for the TCK run is versionable.
Florian On 20/09/2011 06:25, Weigel, Achim wrote: > Hi Florian, > > yes the server returns the id of the PWC but in the "Update Smoke Test" the > checkout method is not called. > > Best Regards, > Achim > > -----Original Message----- > From: Florian Müller [mailto:[email protected]] > Sent: Montag, 19. September 2011 16:02 > To: Weigel, Achim; [email protected] > Subject: Re: Update Smoke Test for Document Type with Versioning > > 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:[email protected]] >> Sent: Montag, 5. September 2011 15:23 >> To: [email protected] >> 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 >>> >>> >> >
