You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by Gerolf Seitz <ge...@gmail.com> on 2007/11/02 01:45:44 UTC

WICKET-958: Mounts ignored for PageExpiredErrorPage

hi,

if a page is mounted and at the same time used as the page-expired page,
it doesn't use the mount but rather the url of the expired page, because we
don't call RequestCycle#setRedirect.
also see https://issues.apache.org/jira/browse/WICKET-958

suggestions:

1) keep the current behavior -> ignore mounted PageExpiredErrorPageClass (
redirect == false)

2) always redirect to the pageExpired page:
the only change needed is to call RequestCycle.get().setRedirect(true)
before throwing the exception.
drawback: if page-expired page is not mounted, you get the
?wicket:bookmarkablePage... url,
in which case it's not any better than the original url.

3) only redirect when the page-expired page is mounted:
seems to be the best solution, because the (wicket) user cared enough to
mount the page-expired page,
so the original url is probably disposable anyway.

a tiny setup showed that 3) works and should not cause any problems.

is there anything i could've forgotten to take into consideration?


thanks for bearing with me and your feedback :)

  Gerolf

Re: WICKET-958: Mounts ignored for PageExpiredErrorPage

Posted by Gerolf Seitz <ge...@gmail.com>.
thx, fix is in.

  Gerolf


On Nov 3, 2007 8:19 PM, Eelco Hillenius <ee...@gmail.com> wrote:

> On 11/3/07, Al Maw <wi...@almaw.com> wrote:
> > Gerolf Seitz wrote:
> > > 3) only redirect when the page-expired page is mounted:
> > > seems to be the best solution, because the (wicket) user cared enough
> to
> > > mount the page-expired page,
> > > so the original url is probably disposable anyway.
> >
> > That sounds fairly sensible to me.
>
> +1
>
> Eelco
>

Re: WICKET-958: Mounts ignored for PageExpiredErrorPage

Posted by Eelco Hillenius <ee...@gmail.com>.
On 11/3/07, Al Maw <wi...@almaw.com> wrote:
> Gerolf Seitz wrote:
> > 3) only redirect when the page-expired page is mounted:
> > seems to be the best solution, because the (wicket) user cared enough to
> > mount the page-expired page,
> > so the original url is probably disposable anyway.
>
> That sounds fairly sensible to me.

+1

Eelco

Re: WICKET-958: Mounts ignored for PageExpiredErrorPage

Posted by Al Maw <wi...@almaw.com>.
Gerolf Seitz wrote:
> 3) only redirect when the page-expired page is mounted:
> seems to be the best solution, because the (wicket) user cared enough to
> mount the page-expired page,
> so the original url is probably disposable anyway.

That sounds fairly sensible to me.

Regards,

Al