ode-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ODE-1027) Variables as number predicates don't work with XPath 1.0
Date Mon, 02 Feb 2015 19:34:34 GMT

    [ https://issues.apache.org/jira/browse/ODE-1027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14301753#comment-14301753
] 

Hudson commented on ODE-1027:
-----------------------------

UNSTABLE: Integrated in ODE-trunk-jdk6 #816 (See [https://builds.apache.org/job/ODE-trunk-jdk6/816/])
ODE-1027: Properly cast numbers in XPath 1.0 expressions. (vanto: rev 28dcae93d007ede3b93b7e9df53584d021452e45)
* bpel-runtime/src/main/java/org/apache/ode/bpel/elang/xpath10/runtime/JaxenContexts.java


> Variables as number predicates don't work with XPath 1.0
> --------------------------------------------------------
>
>                 Key: ODE-1027
>                 URL: https://issues.apache.org/jira/browse/ODE-1027
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>    Affects Versions: 1.3.6
>            Reporter: Tammo van Lessen
>             Fix For: 1.3.7, 1.4
>
>
> When variables are used as number predicates to select a specific node, in XPath 1.0
the variable value is treated as string and not properly casted to a number. Thus, Jaxen will
select all nodes and not a single node. This can be fixed by added a special cast to org.apache.ode.bpel.elang.xpath10.runtime.JaxenContexts.getVariableValue(String,
String, String) -- in the same way as Booleans are treated.
> As a workaround, the variable can be casted in the XPath expression itself, so instead
of tns:args[$Counter]/tns:name you can write tns:args[number($Counter)]/tns:name.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message