Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 79827186C8 for ; Wed, 9 Dec 2015 09:50:11 +0000 (UTC) Received: (qmail 4079 invoked by uid 500); 9 Dec 2015 09:50:11 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 3934 invoked by uid 500); 9 Dec 2015 09:50:11 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 3860 invoked by uid 99); 9 Dec 2015 09:50:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Dec 2015 09:50:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id F30F62C1F5A for ; Wed, 9 Dec 2015 09:50:10 +0000 (UTC) Date: Wed, 9 Dec 2015 09:50:10 +0000 (UTC) From: "Stefan Albrecht (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (JXPATH-187) Possible endless loop in Namespace Resolving MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JXPATH-187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stefan Albrecht closed JXPATH-187. ---------------------------------- Resolution: Duplicate Fix Version/s: 1.4 > Possible endless loop in Namespace Resolving > -------------------------------------------- > > Key: JXPATH-187 > URL: https://issues.apache.org/jira/browse/JXPATH-187 > Project: Commons JXPath > Issue Type: Bug > Affects Versions: 1.3 > Reporter: Stefan Albrecht > Fix For: 1.4 > > Attachments: patch.junit.tgz, patch.txt > > > When dealing with XML documents - org.w3c.dom - and when having a hierarchy of relative contexts, then, when trying to resolve the namespace prefix for some namespace uri, an endless loop is triggered. > This happens if > * the namespace is not programatically registered with JXPathContext > * the context used to resolve the namespace > ** has a parent context > ** and neither the context nor the parent have the namespace defined within the document > I attached a patch for org/apache/commons/jxpath/ri/NamespaceResolver.java > as well as a tar ball with a junit test and test files -- This message was sent by Atlassian JIRA (v6.3.4#6332)