[jboss-jira] [JBoss JIRA] (WFLY-2388) Calling getRequestURI() returns wrong address for root URL of webapp
Christian Kaltepoth (JIRA)
jira-events at lists.jboss.org
Sat Oct 26 03:27:02 EDT 2013
Christian Kaltepoth created WFLY-2388:
-----------------------------------------
Summary: Calling getRequestURI() returns wrong address for root URL of webapp
Key: WFLY-2388
URL: https://issues.jboss.org/browse/WFLY-2388
Project: WildFly
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Web (Undertow)
Affects Versions: 8.0.0.Beta1
Reporter: Christian Kaltepoth
Assignee: Stuart Douglas
Attachments: start-page.zip
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.
--
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
More information about the jboss-jira
mailing list