]
Stuart Douglas commented on WFLY-4070:
--------------------------------------
Wildfly now behaves the same as Tomcat for your example, however the relevant change was
to do with welcome file handing father than a dispatcher based change. Because you have
named your test file index.jsp it will be recognised as a welcome file, and the request
dispatcher is not actually involved at all.
Dispatcher modifies result of getRequestURI of the original request
object
--------------------------------------------------------------------------
Key: WFLY-4070
URL:
https://issues.jboss.org/browse/WFLY-4070
Project: WildFly
Issue Type: Bug
Components: Web (Undertow)
Affects Versions: 8.1.0.Final, 9.0.0.Alpha1
Reporter: Patson Luk
Assignee: Stuart Douglas
Attachments: test-wildfly.war, test-wildfly.zip
This is actually similar to
https://issues.jboss.org/browse/WFLY-2388, which was fixed in
8.0.0.CR1
However, it seems like with RequestDispatcher forward, the ORIGINAL ServletRequest
object's getRequestURI returns the forwarded URI as the result, which is not correct.
It is expected that the original ServletRequest object should retain its originating
requested URI throughout the processing.
This seems to affect all the versions of Wildfly (tested on 8.1 and 9.0 alpha)
Take note that this has also been tested on JBoss AS 7 and tomcat 7, both have correctly
retained the originating URI as expected even after dispatcher forwards