Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 77475 invoked from network); 2 Aug 2006 16:51:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Aug 2006 16:51:50 -0000 Received: (qmail 2143 invoked by uid 500); 2 Aug 2006 16:51:49 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 1944 invoked by uid 500); 2 Aug 2006 16:51:48 -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 1934 invoked by uid 99); 2 Aug 2006 16:51:48 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Aug 2006 09:51:48 -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; Wed, 02 Aug 2006 09:51:48 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CBEF4410021 for ; Wed, 2 Aug 2006 16:49:14 +0000 (GMT) Message-ID: <5426316.1154537354832.JavaMail.jira@brutus> Date: Wed, 2 Aug 2006 09:49:14 -0700 (PDT) From: "Marcel Reutegger (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Resolved: (JCR-512) TCK: AbstractImportXmlTest incorrectly assumes mix:referenceable can be added to created node In-Reply-To: <2739479.1153957215481.JavaMail.jira@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-512?page=all ] Marcel Reutegger resolved JCR-512. ---------------------------------- Fix Version/s: 1.1 Resolution: Fixed Fixed as suggested. svn revision: 428047 Thank you for reporting this issue. > TCK: AbstractImportXmlTest incorrectly assumes mix:referenceable can be added to created node > --------------------------------------------------------------------------------------------- > > Key: JCR-512 > URL: http://issues.apache.org/jira/browse/JCR-512 > Project: Jackrabbit > Issue Type: Bug > Components: test > Reporter: David Pitfield > Fix For: 1.1 > > > isMixRefRespected() assumes that if the NodeTypeManager contains mix:referenceable, addMixin can be called to add mix:referenceable to a created node. This assumption is incorrect for at least two reasons. First, the created node might already be mix:referenceable, either because its primary node type is a subtype of mix:referenceable or because the implementation added mix:referenceable as a mixin type in creating the node. Second, a repository may restrict the nodes to which mix:referenceable can be added. In the extreme case, the repository may not allow mix:referenceable to be added to any node using addMixin, in which case the only referenceable nodes would be those which are mix:referenceable by virtue of primary type or the implementation's adding mix:referenceable as a mixin type at node creation. > Proposal: test canAddMixin before calling addMixin. -- 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