You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by "Rafal Rusin (JIRA)" <ji...@apache.org> on 2010/05/07 19:19:48 UTC

[jira] Resolved: (ODE-807) Infinite Loop when locating unresolved functions in XPath expression

     [ https://issues.apache.org/jira/browse/ODE-807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rafal Rusin resolved ODE-807.
-----------------------------

    Fix Version/s: 1.3.4
       Resolution: Fixed

Thanks Dave! This one was nice. 

> 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
>             Fix For: 1.3.4
>
>         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.