antonluca formichella created WFLY-6421:
-------------------------------------------
Summary: Servlet mapping does not match url-pattern with wildcard if Filter
mapping matches url-pattern without wildcard previously
Key: WFLY-6421
URL:
https://issues.jboss.org/browse/WFLY-6421
Project: WildFly
Issue Type: Bug
Components: Web (Undertow)
Affects Versions: 9.0.2.Final
Reporter: antonluca formichella
Assignee: Stuart Douglas
First scenario (filter + servlet with same url-pattern, works):
<filter-mapping>
<filter-name>TestFilter</filter-name>
<url-pattern>/test/*</url-pattern>
</filter-mapping>
<servlet-mapping>
<servlet-name>TestServlet</servlet-name>
<url-pattern>/test/*</url-pattern>
</servlet-mapping>
accessing /test both TestFilter and TestServlet are invoked
Second scenario (filter + servlet with different url-pattern, does not work):
<filter-mapping>
<filter-name>TestFilter</filter-name>
<url-pattern>/test</url-pattern>
</filter-mapping>
<servlet-mapping>
<servlet-name>TestServlet</servlet-name>
<url-pattern>/test/*</url-pattern>
</servlet-mapping>
accessing /test TestFilter is invoked, TestServlet is not invoked!!!
The second scenario works fine on wildfly 8.2.0, but does not work on wildfly 9.0.2
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)