struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ryabko (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (STR-3169) inifinite loop in wildcard mapping
Date Wed, 17 Dec 2008 06:32:37 GMT

    [ https://issues.apache.org/struts/browse/STR-3169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45060#action_45060
] 

ryabko edited comment on STR-3169 at 12/16/08 10:30 PM:
--------------------------------------------------------

I'm waiting for a 5 minutes and no exceptions are thrown.
Sorry, I made a mistake identifying the bad method.
I run the application under debugger and found the really bad method.
It is ActionConfigMatcher.convertParam(String val, Map vars). It has an infinite loop at line
262 (struts-1.3.9).

In my case the parameters passed into method are:

    val = "{1}"
    vars = "1->{0}, 0->page-{0}"

So, there is an infinite loop while replacing all instances of the placeholoder, because the
placeholder wildcard looks like exact value.

      was (Author: ryabko):
    I'm waiting for a 5 minutes and no exceptions are thrown.
Sorry, I made a mistake identifying the bad method.
I run the application under debugger and found the really bad method.
It is ActionConfigMatcher.convertParam(String val, Map vars). It has an infinite loop at line
262 (struts-1.3.9).

In my case the parameters passed into method are:

    val = "{1}"
    vars = "1->{0}, 0->ad-{0}"

So, there is an infinite loop while replacing all instances of the placeholoder, because the
placeholder wildcard looks like exact value.
  
> inifinite loop in wildcard mapping
> ----------------------------------
>
>                 Key: STR-3169
>                 URL: https://issues.apache.org/struts/browse/STR-3169
>             Project: Struts 1
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.3.9
>            Reporter: ryabko
>             Fix For: Pending Review
>
>
> I have that mapping:
>     <action path="/page-*"
>                    type="ru.ryabko.actions.ShowPage"
>                    parameter="{1}">
>                <forward name="success" path="/page.jsp"/>
>     </action>
> The application hang up in WildcardHelper.match() method if i construct URL like that:
>               http://localhost/page-{0}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message