From dev-return-28762-apmail-jackrabbit-dev-archive=jackrabbit.apache.org@jackrabbit.apache.org Thu Jul 15 13:35:52 2010 Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 6973 invoked from network); 15 Jul 2010 13:35:52 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Jul 2010 13:35:52 -0000 Received: (qmail 65763 invoked by uid 500); 15 Jul 2010 13:35:51 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 64658 invoked by uid 500); 15 Jul 2010 13:35: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 64650 invoked by uid 99); 15 Jul 2010 13:35:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jul 2010 13:35:48 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jul 2010 13:35:45 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6FDRrYF019476 for ; Thu, 15 Jul 2010 13:27:53 GMT Message-ID: <27972352.395561279200473220.JavaMail.jira@thor> Date: Thu, 15 Jul 2010 09:27:53 -0400 (EDT) From: "Berry van Halderen (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Created: (JCR-2675) Node.hasProperty() with relative path can throw ClassCastException 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 Node.hasProperty() with relative path can throw ClassCastException ------------------------------------------------------------------ Key: JCR-2675 URL: https://issues.apache.org/jira/browse/JCR-2675 Project: Jackrabbit Content Repository Issue Type: Bug Components: jackrabbit-core Affects Versions: 2.1.0, 2.0.0, 1.6.2, 1.5.7 Reporter: Berry van Halderen Calling Node.hasProperty() with a relative path that traverses higher than the root node will throw a ClassCastException because the ItemId returned by HierarchyManagerImpl.resolvePath() will be the root node id. The blind cast in the HierarchyManagerImpl.resolvePropertyPath() will then throw the ClassCastException. This issue is not just with hasProperty/resolvePropertyPath, but any call to resolvePath that goes higher than the root node, will wrongfully get the root node id returned as result. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.