Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 83613 invoked from network); 28 Feb 2011 09:16:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Feb 2011 09:16:46 -0000 Received: (qmail 61893 invoked by uid 500); 28 Feb 2011 09:16:45 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 61316 invoked by uid 500); 28 Feb 2011 09:16:42 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 61300 invoked by uid 99); 28 Feb 2011 09:16:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Feb 2011 09:16:40 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of stefan.guggisberg@gmail.com designates 209.85.215.42 as permitted sender) Received: from [209.85.215.42] (HELO mail-ew0-f42.google.com) (209.85.215.42) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Feb 2011 09:16:35 +0000 Received: by ewy1 with SMTP id 1so1797027ewy.1 for ; Mon, 28 Feb 2011 01:16:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=Y2XGlggON7lWvPrWrRCeqN09lmlbC5j9LsLlx4QjPQ0=; b=lymKLv7lUnB7w68qVTzL1vM7ndSxeL73S7LoMJqp79ZFAFPEIDQR3495hmAkz1Odav aEdgJ/q9Wqdv+drTcZn5ra0Lo9upXo3gza97+qet/kC5FYmtvNUZAV83FaBJKZsJ+k59 tWIaIh8Oxvvhdc3P+/vp4uiTaxh+QP1JDPJrQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=TUwiR4ukuwTDpjI7T17MXyxHd5skBbbjEzquLxO7mnDLKlyydB7kDepjRZq9W3+ZqQ PIty47IyUvkXVST4xFE+FW2sbTybtp1BAFhyf0mIH13nCLM+OHV0Wf0TfjWy6dNFHHqF IvL79xHWIpEhFWk8H62/Ptn2MzNCfUBYO6+28= MIME-Version: 1.0 Received: by 10.213.34.207 with SMTP id m15mr1391456ebd.89.1298884573839; Mon, 28 Feb 2011 01:16:13 -0800 (PST) Received: by 10.213.35.133 with HTTP; Mon, 28 Feb 2011 01:16:13 -0800 (PST) In-Reply-To: References: Date: Mon, 28 Feb 2011 10:16:13 +0100 Message-ID: Subject: Re: same name sibling issuesq From: Stefan Guggisberg To: users@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Sun, Feb 27, 2011 at 8:32 PM, GOODWIN, MATTHEW (ATTCORP) wrote: > I believe we experienced the same issue (in the moveFrom for a node) and > filed a bug. =A0Please see https://issues.apache.org/jira/browse/JCR-2891 sorry, but i fail to see how JCR-2891 relates to the issue hand... cheers stefan > > This bug has been scheduled for 2.2.5 but I haven't heard when 2.2.5 is > going to be released. > > -----Original Message----- > From: ChadDavis [mailto:chadmichaeldavis@gmail.com] > Sent: Sunday, February 27, 2011 1:02 PM > To: users@jackrabbit.apache.org > Subject: Re: same name sibling issuesq > >> the following logic applies: >> >> - find a matching 'named' child node definition (both name and > required >> type >> =A0constraints must be satisfied) >> - if none exists, the first residual child node definition that > satisfies >> =A0the required type constraint is chosen. the order of evaluation is >> =A0undefined. >> > > Just to clarify. =A0Are you saying that if two residual child node > definitions > are inherited from supertypes, then it's undefined which one get's > applied? > =A0Undefined in the specification, correct? > > >> >> see o.a.j.core.nodetype.EffectiveNodeType#getApplicableChildNodeDef >> for the implementation. >> > > And, here, you are referring me to see the actual jackrabbit > implementation > so I can peruse the logic myself, correct? =A0Thanks. =A0This is precisel= y > what > I need. > > At this point, I'm fairly certain that I witnessed erratic behavior in > Jackrabbit's evaluation of which rule to apply . . . I don't want to > file a > super vague ticket for this, as I know that vague tickets are annoying > -- I > see plenty of them myself, but I may not get time to investigate further > . . > . what do you recommend, should I file a ticket just so it's on record, > or > no? > > > >> WRT your use case i'd suggest to add residual property and child node >> definitions to me:folder and remove the nt:unstructured supertype. >> >> > Yes, I did something like this already. =A0I defined my own "unstructured= " > type and let my types inherit from that, thus taking all SNS out of the > inheritance hierarchy. > > >> >> >