Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-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 7754710919 for ; Tue, 30 Jul 2013 16:01:57 +0000 (UTC) Received: (qmail 19590 invoked by uid 500); 30 Jul 2013 16:01:54 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 19559 invoked by uid 500); 30 Jul 2013 16:01:54 -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 19252 invoked by uid 99); 30 Jul 2013 16:01:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jul 2013 16:01:51 +0000 Date: Tue, 30 Jul 2013 16:01:51 +0000 (UTC) From: "Florin Iordache (JIRA)" To: dev@jackrabbit.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (JCR-3635) Manually specified jcr:frozenUuid overwriting the one assigned by the VersionManager when versioning node MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JCR-3635?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Florin Iordache updated JCR-3635: --------------------------------- Attachment: JCR-3635.patch Attached patch that fixes the issue by ignoring the jcr:frozenUuid property when copying properties from the source node to the target version node. > Manually specified jcr:frozenUuid overwriting the one assigned by the VersionManager when versioning node > --------------------------------------------------------------------------------------------------------- > > Key: JCR-3635 > URL: https://issues.apache.org/jira/browse/JCR-3635 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: versioning > Affects Versions: 2.7 > Reporter: Florin Iordache > Attachments: CopyFrozenUuidTest.java, JCR-3635.patch > > > Let's assume we have node N with a manually assigned jcr:frozenUuid property (e.g. taken from an existing frozenNode version of another node). > When creating versions of node N, the manually assigned frozenUuid property will overwrite the frozenUuid automatically created by the VersionManager in the versioning process because the jcr:frozenUuid property is not skipped when copying the existing properties from the versioned node to the frozen node in the version subtree. > This can potentially cause issues whenever the jcr:frozenUuid is used in the future, since it would basically point to a different versioned node. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira