[jboss-jira] [JBoss JIRA] (WFLY-2388) Calling getRequestURI() returns wrong address for root URL of webapp

Stuart Douglas (JIRA) jira-events at lists.jboss.org
Mon Oct 28 06:32:01 EDT 2013


     [ https://issues.jboss.org/browse/WFLY-2388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart Douglas resolved WFLY-2388.
----------------------------------

    Fix Version/s: 8.0.0.CR1
       Resolution: Done

    
> 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
>             Fix For: 8.0.0.CR1
>
>         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