Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-5550

servlet filter mapping empty string not working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • EAP 6.1.0.Alpha (7.2.0.Final)
    • Web
    • None

      the special url pattern "" (empty string) works in servlet mapping, but not in servlet filter mapping.

      12.2 Specification of Mappings
      ...
      The empty string ("") is a special URL pattern that exactly maps to the
      application's context root, i.e., requests of the form http://host:port/<context- root>/.

      The @WebFilter(urlPatterns=

      {""}

      ) is not triggered at request time.

              rmaucher Remy Maucherat
              cfang@redhat.com Cheng Fang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: