You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Don Brown (JIRA)" <ji...@apache.org> on 2006/09/26 07:45:32 UTC
[jira] Resolved: (WW-1301) UrlHelper doesn't use the original
requested URL in a Servlet 2.4 container when the request has been
forwarded
[ http://issues.apache.org/struts/browse/WW-1301?page=all ]
Don Brown resolved WW-1301.
---------------------------
Fix Version/s: 2.0.1
Resolution: Fixed
Assignee: Don Brown
Fixed, thanks for the patch!
> UrlHelper doesn't use the original requested URL in a Servlet 2.4 container when the request has been forwarded
> ---------------------------------------------------------------------------------------------------------------
>
> Key: WW-1301
> URL: http://issues.apache.org/struts/browse/WW-1301
> Project: Struts 2
> Issue Type: Bug
> Components: Views
> Affects Versions: WW 2.1.8, WW 2.2.1, WW 2.2.2
> Environment: WinXP, Tomcat 5.5.17, J2SE 5.0
> Reporter: Erik Pilz
> Assigned To: Don Brown
> Fix For: 2.0.1
>
> Attachments: UrlHelper.patch, UrlHelperTest.patch, UrlHelperTest.patch
>
>
> The UrlHelper code uses HttpServletRequest#getRequestURI() to get the URL that the user requested. In a servlet 2.4 container this won't work if the request has been forwarded. In a 2.4 container the call to HttpServletRequest#getRequestURI() will return the URL of the forwarded page. The UrlHelper should first try to get the URI from the "javax.servlet.forward.request_uri" request attribute.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira