https://issues.apache.org/bugzilla/show_bug.cgi?id=50161
Summary: "index.jsp" is added to paths ending in a "/" before
doFilter is called on matching Filters
Product: Tomcat 7
Version: 7.0.4
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=26216)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=26216)
war file demonstrating the bug
When registering a Filter with a wildcarded url-patterm (ie: "/*") tomcat 7.0.4
seems to be adding "index.jsp" to the end of any url which ends in a "/" prior
to invoking the Filter's doFilter method.
This is a change in behavior from tomcat 6.0.29 (and certainly seems like a
bug, but i'm not an expert on the servlet spec)
The attached war file includes a filter (and it's source) which is mapped to
the url-pattern "/*". This filter causes a 400 response for any request it
sees, specifying the path information included in the HttpServletRequest as the
error message.
If you start up tomcat 6.0.* using port 8080, running this war, a URL like
this....
http://localhost:8080/filter-bug/asdf
...will produce an error message like...
filterbugd...@24988707 Got:/asdf + null
...likewise a URL like this...
http://localhost:8080/filter-bug/asdf/
...will produce the error message...
filterbugd...@24988707 Got:/asdf/ + null
Using Tomcat 7.0.4 however, the last URL method above produces this error...
filterbugd...@4a8d3d62 Got:/asdf/index.jsp + null
...indicating that the Filter did not receive an HttpServletRequest
containing the "correct" URL sent by the client.
(Note: This behavior may exist in other versions of Tomcat 7.0.*, i only tested
7.0.4)
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]