myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michal Dvorak (JIRA)" <...@myfaces.apache.org>
Subject [jira] Commented: (MYFACES-2891) Empty url mapping prefix causes infinite loop in DefaultViewHandlerSupport.handlePrefixMapping
Date Tue, 24 Aug 2010 08:04:16 GMT

    [ https://issues.apache.org/jira/browse/MYFACES-2891?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12901762#action_12901762
] 

Michal Dvorak commented on MYFACES-2891:
----------------------------------------

This happens probably only when using Spring, where viewId comes already resolved to /WEB-INF/...
path, and prefix is empty string. I solved it simply by adding
if (prefix.length() == 0) viewId;
to the start of the method.

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


Mime
View raw message