Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 66324 invoked from network); 1 Feb 2010 18:58:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Feb 2010 18:58:43 -0000 Received: (qmail 60090 invoked by uid 500); 1 Feb 2010 18:58:42 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 60019 invoked by uid 500); 1 Feb 2010 18:58:42 -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 60011 invoked by uid 99); 1 Feb 2010 18:58:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Feb 2010 18:58:42 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Feb 2010 18:58:40 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0670B234C1EE for ; Mon, 1 Feb 2010 10:58:19 -0800 (PST) Message-ID: <1287580131.2621265050699016.JavaMail.jira@brutus.apache.org> Date: Mon, 1 Feb 2010 18:58:19 +0000 (UTC) From: "Marcel Reutegger (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Commented: (JCR-2480) Property definition not properly initialized In-Reply-To: <1229820149.103451264678174558.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-2480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12828221#action_12828221 ] Marcel Reutegger commented on JCR-2480: --------------------------------------- I think this is a bug in TemplateBuilderFactory, which returns a empty array even when no default value is present. Note that this is distinct from an empty array. > Property definition not properly initialized > -------------------------------------------- > > Key: JCR-2480 > URL: https://issues.apache.org/jira/browse/JCR-2480 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: jackrabbit-core, jackrabbit-spi-commons > Affects Versions: 2.0-beta6 > Reporter: Thomas Draier > Priority: Minor > > Hi, > When reading property definitions from the repository, the "defaultValues" is not properly initialized by the NodeTypeReader , if no default values has been set . The defaultValues keeps a null value instead of an empty array. This causes problems when calling NodeTypeManager.regiterNodeTypes() - the property definitions are always seen as modified even they don't . A trivial modification is detected and definitions is rewritten everytime. Passing null as default values for the new definitions does not work, as it's replaced by an empty array. > Modifying the initialization of the QPropertyDefinitionBuilder.defaultValues with an empty list , as it's done for valueConstraints, fixes the issues > regards -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.