Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 78483 invoked from network); 24 Aug 2010 08:04:39 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Aug 2010 08:04:39 -0000 Received: (qmail 73860 invoked by uid 500); 24 Aug 2010 08:04:39 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 73560 invoked by uid 500); 24 Aug 2010 08:04:37 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 73553 invoked by uid 99); 24 Aug 2010 08:04:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Aug 2010 08:04:36 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Aug 2010 08:04:36 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7O84G8x017467 for ; Tue, 24 Aug 2010 08:04:16 GMT Message-ID: <5187008.526051282637056237.JavaMail.jira@thor> Date: Tue, 24 Aug 2010 04:04:16 -0400 (EDT) From: "Michal Dvorak (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Commented: (MYFACES-2891) Empty url mapping prefix causes infinite loop in DefaultViewHandlerSupport.handlePrefixMapping In-Reply-To: <29139508.526031282636878650.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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.