From dev-return-22766-apmail-jackrabbit-dev-archive=jackrabbit.apache.org@jackrabbit.apache.org Wed Apr 15 16:40:37 2009 Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 84959 invoked from network); 15 Apr 2009 16:40:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Apr 2009 16:40:37 -0000 Received: (qmail 87035 invoked by uid 500); 15 Apr 2009 16:40:36 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 86956 invoked by uid 500); 15 Apr 2009 16:40:36 -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 86948 invoked by uid 99); 15 Apr 2009 16:40:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Apr 2009 16:40:36 +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, 15 Apr 2009 16:40:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 208AB234C044 for ; Wed, 15 Apr 2009 09:40:15 -0700 (PDT) Message-ID: <718667620.1239813615132.JavaMail.jira@brutus> Date: Wed, 15 Apr 2009 09:40:15 -0700 (PDT) From: =?utf-8?Q?Michael_D=C3=BCrig_=28JIRA=29?= To: dev@jackrabbit.apache.org Subject: [jira] Created: (JCR-2072) RepositoryService.getPropertyInfo called twice for same property MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org RepositoryService.getPropertyInfo called twice for same property ---------------------------------------------------------------- Key: JCR-2072 URL: https://issues.apache.org/jira/browse/JCR-2072 Project: Jackrabbit Content Repository Issue Type: Improvement Components: jackrabbit-jcr2spi Reporter: Michael D=C3=BCrig The following code=20 if (node.hasProperty("jcr:content/jcr:mimeType")) Value value =3D node.getProperty("jcr:content/jcr:mimeType").getValue(); causes two calls to RepositoryService.getPropertyInfo. One for hasProperty(= ) and another one for getProperty(). The second call is not necessary since= the first call should have resolved that property.=20 To fix this o.a.j.jcr2spi.hierarchy.NodeEntryImpl.getDeepPropertyEntry() mu= st consider the properties of the parent entry even though the parent entry= might not yet be complete.=20 --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.