Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 487 invoked from network); 1 May 2006 13:02:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 May 2006 13:02:21 -0000 Received: (qmail 73178 invoked by uid 500); 1 May 2006 13:02:18 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 73007 invoked by uid 500); 1 May 2006 13:02:17 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 72942 invoked by uid 99); 1 May 2006 13:02:17 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 May 2006 06:02:17 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 May 2006 06:02:16 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3EDA37142A7 for ; Mon, 1 May 2006 13:01:47 +0000 (GMT) Message-ID: <17444104.1146488507253.JavaMail.jira@brutus> Date: Mon, 1 May 2006 13:01:47 +0000 (GMT+00:00) From: "Tobias Bocanegra (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Commented: (JCR-414) jcr:successors property not persisted correctly within a transaction In-Reply-To: <105637983.1146066062943.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/JCR-414?page=comments#action_12377219 ] Tobias Bocanegra commented on JCR-414: -------------------------------------- i modified the versionmanager behaviour a little. the jcr:successor virtual property is not longer virtual but is also persisted in the version persistence manager. unfortunately, this does not fix this issue at all. it is a fundamental problem, that modifications to the version store within a transaction are not 'seen' from the session using that transaction. i also added a new testcase that finds this problem. (v1 is a version from session 1, v2 the same version from session 2) OK: V1, name=jcr:rootVersion, succ=0 OK: V2, name=jcr:rootVersion, succ=0 ---------checkout/checkin n1 (uncommitted)---------- ERR: V1, name=jcr:rootVersion, succ=0 != 1 OK: V2, name=jcr:rootVersion, succ=0 OK: V1, name=1.0, succ=0 --------checkout/checkin n1 (comitted)---------- OK: V1, name=jcr:rootVersion, succ=1 OK: V2, name=jcr:rootVersion, succ=1 OK: V1, name=1.0, succ=0 As you can see, the number of successors is only correct after the commit. the same happens for 'RemoveVersion'. this probably needs a more thorough change to the code. > jcr:successors property not persisted correctly within a transaction > -------------------------------------------------------------------- > > Key: JCR-414 > URL: http://issues.apache.org/jira/browse/JCR-414 > Project: Jackrabbit > Type: Bug > Components: versioning > Versions: 1.0 > Environment: Java 5.0. > Reporter: Nicolas Belisle > Attachments: PropertyTest.java, VersionHistoryTest.java > > During a transaction, if you create a new version then read the version history the "jcr:successors" property is not updated. Note that "jcr:predecessors" is updated properly. > Also, the version history is sometimes not propertly read. During the transaction, it might appear empty. This behavior in not consistent from one execution to another. > After a restart of the repository, the version history and the "jcr:successors" property is read properly. > * Tests cases will follow shortly. > Thanks, > Nicolas -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira