[
https://issues.apache.org/jira/browse/ODE-807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Carver updated ODE-807:
-----------------------------
Attachment: ode1.x-807-v1.txt
Proposed patch to correctly extract all functions that may not have been
previously resolved. This uses a RegEx pattern to identify the possible
functions and extract them. Test cases have been included to verify that
namespace prefixed functions are being extracted since these are the ones that
aren't likely to be resolved.
The infinite look would occur because the existing code had problems dealing
with timestamps that had a : in them. It assumed that the : was always being
used to represent a prefix for either a node of function.
> Infinite Loop when locating unresolved functions in XPath expression
> --------------------------------------------------------------------
>
> Key: ODE-807
> URL: https://issues.apache.org/jira/browse/ODE-807
> Project: ODE
> Issue Type: Bug
> Affects Versions: 1.3.3, 2.0-beta1, 2.0-beta2
> Reporter: David Carver
> Attachments: ode1.x-807-v1.txt
>
>
> An infinite loop will occur in the extractFunctions method, when the
> following XPath expression is passed into it:
> concat(current-date() + xs:dayTimeDuration(concat("P",
> $DAYS_TO_NEXT_REMINDER, "D")), "T", "08:30:00.000+08:00")
> The loop happes when location the : in "08:30:00"
> The " gets located, and the index gets reset to the colonIndex, causing an
> infinite loop to occur.
> I'm working on a patch for this issue now.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.