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 28068106EE for ; Mon, 29 Apr 2013 17:11:52 +0000 (UTC) Received: (qmail 99751 invoked by uid 500); 29 Apr 2013 17:11:52 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 99686 invoked by uid 500); 29 Apr 2013 17:11:51 -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 99675 invoked by uid 99); 29 Apr 2013 17:11:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Apr 2013 17:11:51 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of iashley@opentext.com designates 149.235.225.43 as permitted sender) Received: from [149.235.225.43] (HELO smtp7.opentext.com) (149.235.225.43) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Apr 2013 17:11:45 +0000 Received: from otmucxg12.opentext.net (otmucxg12.opentext.net [149.235.128.93]) by mucdmzsvc05.dmz.opentext.com (8.14.4/8.14.4) with ESMTP id r3THBNK6019491 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Mon, 29 Apr 2013 13:11:23 -0400 Received: from otmucxg21.opentext.net ([fe80::9dd5:bb19:274c:6d56]) by otmucxg12.opentext.net ([149.235.128.93]) with mapi id 14.02.0318.004; Mon, 29 Apr 2013 19:11:22 +0200 From: Ian Ashley To: Apache Chemistry Mailing List Subject: moveObject and the cache Thread-Topic: moveObject and the cache Thread-Index: AQHORPySFf176ZFnO0ubpt7zW1I3dQ== Date: Mon, 29 Apr 2013 17:11:22 +0000 Message-ID: <4FF4BF9942FF894ABD86BDDD3F672E6F37BDDEFE@otmucxg21.opentext.net> Accept-Language: en-GB, de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.137.10.69] x-tm-as-product-ver: SMEX-10.2.0.1135-7.000.1014-19830.007 x-tm-as-result: No--39.732100-8.000000-31 x-tm-as-user-approved-sender: No x-tm-as-user-blocked-sender: No Content-Type: text/plain; charset="us-ascii" Content-ID: <13AEA44B1CBBA84393AD266A2E96C918@opentext.net> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Archived: msg.ECdboCP:2013-04-29:mucdmzsvc05.dmz.opentext.com X-Virus-Checked: Checked by ClamAV on apache.org Dear all, After using the move method of FileableCmisObject it looks like the object = being moved needs updating in the cache. When we call fileableObject =3D (FileableCmisObject)session.getObject(objectId); fileableObject.move(sourceId, targetId); object =3D session.getObject(objectId); parentId =3D object.getProperty(PropertyIds.PARENT_ID) parentId is sourceId rather than targetId We have worked round the problem by removing the object from the cache afte= r moving it. Our repository doesn't check the id of the object when it is m= oved. Regards, Ian