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

Jakob Korherr resolved MYFACES-2891.
------------------------------------

    Fix Version/s: 2.0.2-SNAPSHOT
       Resolution: Fixed

I changed the algorithm so that prefix is "//" if it would be an empty string. 
With this way we can prevent an infinite loop but still have the double slash 
prevention (actually even twice).

> Empty url mapping prefix causes infinite loop in 
> DefaultViewHandlerSupport.handlePrefixMapping
> ----------------------------------------------------------------------------------------------
>
>                 Key: MYFACES-2891
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2891
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.1
>         Environment: Weblogic 10.3, Sun JAVA 1.6, Spring Framework 3.0.3, 
> Spring Webflow 2.1.1
>            Reporter: Michal Dvorak
>            Assignee: Jakob Korherr
>             Fix For: 2.0.2-SNAPSHOT
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> The loop
> while (uri.startsWith(prefix) || uri.startsWith("//")) ...
> cannot end when prefix is empty string (which should be valid value).

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

Reply via email to