[
https://issues.apache.org/jira/browse/MYFACES-2891?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12901762#action_12901762
]
Michal Dvorak edited comment on MYFACES-2891 at 8/24/10 4:06 AM:
-----------------------------------------------------------------
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 (althou it wont remove leading // in the path as
loop does).
was (Author: mikee2185):
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.