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 EDC6C991F for ; Thu, 29 Nov 2012 16:03:00 +0000 (UTC) Received: (qmail 83864 invoked by uid 500); 29 Nov 2012 16:03:00 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 83554 invoked by uid 500); 29 Nov 2012 16:03:00 -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 83101 invoked by uid 99); 29 Nov 2012 16:02:58 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2012 16:02:58 +0000 Date: Thu, 29 Nov 2012 16:02:58 +0000 (UTC) From: "Alexander Klimetschek (JIRA)" To: dev@jackrabbit.apache.org Message-ID: <692080401.40476.1354204978434.JavaMail.jiratomcat@arcas> In-Reply-To: <893206342.38367.1351502352085.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (JCR-3452) Modified property and child node definition are rejected 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-3452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13506556#comment-13506556 ] Alexander Klimetschek commented on JCR-3452: -------------------------------------------- AFAIU, making something more restrictive than before is considered a "major" change because it could make existing content invalid. > Modified property and child node definition are rejected > -------------------------------------------------------- > > Key: JCR-3452 > URL: https://issues.apache.org/jira/browse/JCR-3452 > Project: Jackrabbit Content Repository > Issue Type: Bug > Affects Versions: 2.5.2 > Reporter: Tom Quellenberg > Priority: Minor > Attachments: patch.txt > > > NodeTypeDefDiff identifies modified properties and child nodes by QNodeDefinitionId and QPropertyDefinitionId. Both classes have their own equals and hashCode methods. Thus, properties and child nodes with trivial changes (changed required types or isMultiple) are always considered as added and removed ( = major change) and never as changed. > Additional, the check for required child node types seems wrong to me: adding additional (alternative) constraints are considered as major change. I think, the opposite is true: removing node types from the list of required types is a major change (there may exist child nodes of the removed type), adding alternative constraints is a trivial change. > There is one more change to the required child node types, which can easily be checked: setting the required type to nt:base. This should always be possible. -- 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