You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by lucast <lu...@hotmail.com> on 2015/03/05 18:50:28 UTC

trying to redirect to external URL when using HttpsMapper

Dear Forum,
I have a form on a page where user enters personal data, and the page has
the @RequireHttps because I'm trying to make the information captured more
secure.

When the user clicks submit, the page should redirect to an external URL. In
this case, PayPal checkout page.


Unfortunately, on form submission, the page is not always redirected to the
desired external URL. This problem only occurs on Production mode. Very
frequently it is redirected to the 404 page-not-found page instead of the
external URL.

On my Wicket application, I call


If I remove that line, then redirecting to an external page works without
problem, but HTTPS  on pages is no longer enforced.

Has any of you encountered this problem in the past?

Thanks in advance,
Lucas

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/trying-to-redirect-to-external-URL-when-using-HttpsMapper-tp4669869.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: trying to redirect to external URL when using HttpsMapper

Posted by lucast <lu...@hotmail.com>.
Hi Sven,
Thanks for replying.

on the ajax submit button I call:

@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) 
{
	redirectToInterceptPage(new RedirectPage(URLString));
}

>Have you compared the request sequence in the browser (e.g. with Firebug)? 

That is something I am not aware of. I'll look it up.

Thanks,
Lucas

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/trying-to-redirect-to-external-URL-when-using-HttpsMapper-tp4669869p4669871.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: trying to redirect to external URL when using HttpsMapper

Posted by Sven Meier <sv...@meiers.net>.
Hi,

how do you redirect to the external url?

Have you compared the request sequence in the browser (e.g. with Firebug)?
What are the differences between the successful and the failed redirect?

Regards
Sven

Am 05.03.2015 um 18:50 schrieb lucast:
> Dear Forum,
> I have a form on a page where user enters personal data, and the page has
> the @RequireHttps because I'm trying to make the information captured more
> secure.
>
> When the user clicks submit, the page should redirect to an external URL. In
> this case, PayPal checkout page.
>
>
> Unfortunately, on form submission, the page is not always redirected to the
> desired external URL. This problem only occurs on Production mode. Very
> frequently it is redirected to the 404 page-not-found page instead of the
> external URL.
>
> On my Wicket application, I call
>
>
> If I remove that line, then redirecting to an external page works without
> problem, but HTTPS  on pages is no longer enforced.
>
> Has any of you encountered this problem in the past?
>
> Thanks in advance,
> Lucas
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/trying-to-redirect-to-external-URL-when-using-HttpsMapper-tp4669869.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org