[
https://issues.jboss.org/browse/AS7-5550?page=com.atlassian.jira.plugin.s...
]
Cheng Fang commented on AS7-5550:
---------------------------------
I guess that's why the spec calls it a 'special' url pattern. My reading is
that it should apply to both servlet mappoing and filter mapping. Say an app has filter
mapping "" and servlet mapping "", and they would expect the filter to
be associated with the target servelt since they have the same url pattern. But now the
filter will just be silently ignored in as7.
servlet filter mapping empty string not working
-----------------------------------------------
Key: AS7-5550
URL:
https://issues.jboss.org/browse/AS7-5550
Project: Application Server 7
Issue Type: Bug
Components: Web
Affects Versions: 7.2.0.Alpha1
Reporter: Cheng Fang
Assignee: Remy Maucherat
the special url pattern "" (empty string) works in servlet mapping, but not in
servlet filter mapping.
{quote}
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>/.
{quote}
The @WebFilter(urlPatterns={""}) is not triggered at request time.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira