Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-668

Servlet mapping does not match url-pattern with wildcard if Filter mapping matches url-pattern without wildcard previously

XMLWordPrintable

      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

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              antonlucaformichella Antonluca Formichella (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: