[ http://mc4j.org/jira/browse/STS-115?page=all ]

Tim Fennell updated STS-115:
----------------------------

    Comment: was deleted

> Incorrect creation of client browser URL while using RedirectResolution 
> within ActionBean Handler method.
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: STS-115
>                 URL: http://mc4j.org/jira/browse/STS-115
>             Project: Stripes
>          Issue Type: Bug
>          Components: ActionBean Dispatching
>    Affects Versions: Release 1.2.1
>         Environment: Java SE version 1.5.0_04-b05
> Windows XP Prof
> Apache Tomcat/5.5.12
> Firefox version 1.5.0.1
>            Reporter: Trent Rosenbaum
>         Assigned To: Tim Fennell
>             Fix For: Release 1.2.2
>
>
> The following object is not providing the client browser with the correct URL 
> when being instructed to perform a redirect.
> net.sourceforge.stripes.action.RedirectResolution
> The object uses the same URLBuilder as the <stripes:link> tag and so replaces 
> the & for an &amp;  This is correct behaviour for the tag when it is writing 
> out a url with parameters to the content of the webpage.  When the same &amp; 
> html entity is a part of a URL in the client browser address bar then the 
> appropriate parameters are ignored.
> Used the following code:
> RedirectResolution resolution = new 
> RedirectResolution("/ViewTopicResponses.action");
> resolution.addParameter("id", topicId);
> resolution.addParameter("viewTopic", "");
> This created the redirect URL of:
> http://localhost:8080/discussion-forum-webapp/ViewTopicResponse.action?viewTopic=&amp;id=2
> This caused the ActionBean linked to the URLBinding to ignore the id 
> parameter and use defaults for the id property.  This caused the incorrect 
> content to be displayed.  The following url should have been returned:
> http://localhost:8080/discussion-forum-webapp/ViewTopicResponse.action?viewTopic=&id=2
> This has been caused by the STS-114 that corrected the html validation errors 
> created through the <stripes:link> tag.
> Should the URLBuilder have the ability to be set to use & in certain cases 
> and &amp; in others?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://mc4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to