You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Sam Witty (JIRA)" <de...@myfaces.apache.org> on 2008/07/11 19:06:31 UTC

[jira] Created: (TOMAHAWK-1298) WebXMLParser::readServletMapping does not correctly parse multi mappings.

WebXMLParser::readServletMapping does not correctly parse multi mappings.
-------------------------------------------------------------------------

                 Key: TOMAHAWK-1298
                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1298
             Project: MyFaces Tomahawk
          Issue Type: Bug
          Components: ExtensionsFilter
    Affects Versions: 1.1.6, 1.1.7-SNAPSHOT
            Reporter: Sam Witty
            Priority: Minor


If the servlet mapping is expressed in the following way:

   <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.jsf</url-pattern>
        <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>

the code in readServletMapping will only retain the last mapping (in this case /faces/*). Of course later on it cause a java.lang.IllegalArgumentException: could not find pathMapping for servletPath = /main.jsf requestPathInfo = null because it never retained the "*.jsf" mapping.

The workaround is to break up the servlet mapping into two parts... However, it would be nice if it supported the latest web.xml spec.




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