Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004081 [Resin] major always 06-16-10 04:06 01-13-11 16:30
Reporter olson View Status public  
Assigned To ferg
Priority normal Resolution unable to reproduce Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.15 Product Version 4.0.7
  Product Build
Summary 0004081: servlet url pattern doesnt deal with wildcards correctly
Description I have a spring app, in my web.xml below you will see i have a filter and a servlet mapping which deals with all patterns with a file extension *.html, the problem is the url pattern is dealing with everything regardless whether it has .html in it and the filter which deals with the rest is being overriden.

this worked fine in 4.03 but now seems to be an issue in 4.06/4.07

<web-app id="WebApp_9" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" [^]
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" [^]
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee [^]
  http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> [^]

    <display-name>do-it Website</display-name>

    <filter>
        <filter-name>WebAlias</filter-name>
        <filter-class>se.solutions.webalias.WebAliasFilter</filter-class>
        <init-param>
            <param-name>ExcludedExtensions</param-name>
            <param-value>.gif,.jpg,.png</param-value>
        </init-param>
    </filter>

    <filter-mapping>
        <filter-name>WebAlias</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

    <listener>
        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>

    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>classpath:/config/spring/doit-website-config.xml</param-value>
    </context-param>

    <servlet>
        <servlet-name>dispatcher</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <init-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>classpath:/config/spring/doit-website-servlet.xml</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet-mapping>
        <servlet-name>dispatcher</servlet-name>
        <url-pattern>*.html</url-pattern>
    </servlet-mapping>

</web-app>
Steps To Reproduce
Additional Information server/13ff

Servlet dispatching performs as normal with this configuration.

Turning the logging on to finer will show how Resin has dispatched a URL. So you can use that logging to see what's happening here.
Attached Files

- Relationships

- Notes
(0004702)
alex
08-04-10 12:44

This should be fixed with 4.0.9. Please confirm problem with 4.0.9.
 

- Issue History
Date Modified Username Field Change
06-16-10 04:06 olson New Issue
08-04-10 12:44 alex Note Added: 0004702
01-13-11 16:30 ferg Assigned To  => ferg
01-13-11 16:30 ferg Status new => closed
01-13-11 16:30 ferg Resolution open => unable to reproduce
01-13-11 16:30 ferg Fixed in Version  => 4.0.15
01-13-11 16:30 ferg Additional Information Updated


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker