You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by "David Carver (JIRA)" <ji...@apache.org> on 2010/04/15 22:18:50 UTC

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

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: 2.0-beta2, 2.0-beta1, 1.3.3
            Reporter: David Carver


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.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ODE-807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12876692#action_12876692 ] 

Hudson commented on ODE-807:
----------------------------

Integrated in ODE-trunk-jdk6 #279 (See [http://hudson.zones.apache.org/hudson/job/ODE-trunk-jdk6/279/])
    ODE-840 - Fix XPath extraction regex that caused regression from ODE-807 fix.


> 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.


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

Posted by "Rafal Rusin (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ODE-807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12879324#action_12879324 ] 

Hudson commented on ODE-807:
----------------------------

Integrated in ODE-trunk-jdk6 #289 (See [http://hudson.zones.apache.org/hudson/job/ODE-trunk-jdk6/289/])
    

> 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.


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

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ODE-807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12876710#action_12876710 ] 

Hudson commented on ODE-807:
----------------------------

Integrated in ODE-trunk #289 (See [http://hudson.zones.apache.org/hudson/job/ODE-trunk/289/])
    ODE-840 - Fix XPath extraction regex that caused regression from ODE-807 fix.


> 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.


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

Posted by "David Carver (JIRA)" <ji...@apache.org>.
     [ 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.