commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Albrecht (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (JXPATH-187) Possible endless loop in Namespace Resolving
Date Wed, 09 Dec 2015 09:50:10 GMT

     [ 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)

Mime
View raw message