Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 19413 invoked from network); 21 Oct 2009 15:45:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Oct 2009 15:45:23 -0000 Received: (qmail 15475 invoked by uid 500); 21 Oct 2009 15:45:22 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 15396 invoked by uid 500); 21 Oct 2009 15:45:22 -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 15385 invoked by uid 99); 21 Oct 2009 15:45:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Oct 2009 15:45:22 +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; Wed, 21 Oct 2009 15:45:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 63B95234C045 for ; Wed, 21 Oct 2009 08:44:59 -0700 (PDT) Message-ID: <2132226820.1256139899394.JavaMail.jira@brutus> Date: Wed, 21 Oct 2009 15:44:59 +0000 (UTC) From: "Stefan Guggisberg (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Commented: (JCR-2359) infinite recursion creating a nodeType based on an existing nodeType In-Reply-To: <2080501447.1256134679434.JavaMail.jira@brutus> 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-2359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12768288#action_12768288 ] Stefan Guggisberg commented on JCR-2359: ---------------------------------------- same as JCR-2143 which has been fixed in trunk. the changes however didn't make it in the 1.6 branch for some reason. > infinite recursion creating a nodeType based on an existing nodeType > -------------------------------------------------------------------- > > Key: JCR-2359 > URL: https://issues.apache.org/jira/browse/JCR-2359 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: jackrabbit-core > Affects Versions: 1.6.0 > Reporter: Luca Tagliani > > When I try to create a nodeTypeTemplate using the following code, it's thrown an InvalidNodeTypeException during the registration: > NodeTypeManagerImpl ntmgr = (NodeTypeManagerImpl) session.getWorkspace().getNodeTypeManager(); > NodeTypeTemplate ntt = null; > NodeTypeImpl ntImpl = null; > ntImpl = ntmgr.getNodeType("wr:group"); > ... > ... (adding new PropertyDefintion) > ... > ntt = ntmgr.createNodeTypeTemplate(ntImpl); > ntmgr.registerNodeType(ntt, true); ---> here's thrown the exception > The nodeType wr:group is based on three other nodeType. > If I inspect the new ntt, I see that the supertype are three, but all equal to "wr:group" -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.