-
Bug
-
Resolution: Done
-
Major
-
8.0.0.Beta1
-
None
-
-
Compatibility/Configuration
Reading HttpServletRequest.getRequestURI() from a servlet filter gives incorrect result if requesting the root URL of a webapp:
| Requested URL | getRequestURI() | Correct? |
|---|---|---|
| http://localhost:8080/myapp/foobar | /myapp/foobar | OK |
| http://localhost:8080/myapp/ | /myapp/index.jsp | Incorrect! Should be /myapp/ |
It seems like the filter sees the name of the welcome page instead of the incoming request URL. That's not correct.
I tested this with other containers like Tomcat, AS7 and Glassfish and all of them show the incoming request URL instead.