You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2011/04/13 21:34:05 UTC

[jira] [Reopened] (WICKET-3611) Redirect to Buffer makes one redirect too much

     [ https://issues.apache.org/jira/browse/WICKET-3611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov reopened WICKET-3611:
-------------------------------------


Re-open it after a talk with Igor in IRC.
There is no need to redirect to buffer if fromUrl and toUrl are the same.

> Redirect to Buffer makes one redirect too much
> ----------------------------------------------
>
>                 Key: WICKET-3611
>                 URL: https://issues.apache.org/jira/browse/WICKET-3611
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 1.5-RC3
>            Reporter: Martin Grigorov
>            Assignee: Martin Grigorov
>             Fix For: 1.5-RC4
>
>         Attachments: wicket-3611.tgz
>
>
> It seems the default redirect strategy makes one redirect more than needed.
> Here is the scenario: there is a page A with a (non-ajax) link that sets page B as response page (setResponsePage(B.class).
> In 1.4 this leads to two http requests: 
> - one to the A's link listener
> - and another redirecting to page B
> In 1.5 there are three:
> - one to the A's link listener
> - another redirecting to page B
> - and yet another one again redirecting to B
> With "redirect to render" strategy in both versions just two requests are issued.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira