You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by ShengChe Hsiao <fr...@gmail.com> on 2020/01/22 16:23:11 UTC

Wired PageParameter issue

Dear all

I transfer my website (Apache Wicket 8.5.0 + Oracle Server JRE 8 + Wildfly
10) with new runtime environment: OpenJ9 11 and Wildfly 18.0.1 Final

URL redirectTo = new URL(request.getEndpointURI() + "?" + queryString);
logger.info("\nRedirect To MOE OIDC : {}", redirectTo);
getClientSession().setReAuthRequest(redirectTo.toString().concat("&prompt=none"));

PageParameters params = new PageParameters();
params.add("redirecturi", redirectTo.toString());
setResponsePage(WaitingPage.class, params);


on old environment , I can get correct redirecturi on WaitingPage, such as
https://xxx.xxx.xxx/waiting?redirecturi=*https://xxx.xxx.xxx.xx/
<https://xxx.xxx.xxx.xx/>*
oidc/v1/azp%3Fscope%3Dopenid%2Bexchangedata%26response_type%3Dcode%26redirect_uri%3Dhttps%253A%252F%
252Fauth.sso.edu.tw
%252Fcncreturnpage%26state%3DuM-FQQns-5eRlYChKVQXl7omEbSDOHpQiPjPVGmNF1U%

but on new environment , I cannot get it work, because the resulting url
was :
https://xxx.xxx.xxx/waiting?redirecturi=*https:/xxx.xxx.xxx.xx/*
oidc/v1/azp%3Fscope%3Dopenid%2Bexchangedata%26response_type%3Dcode%26redirect_uri%3Dhttps%253A%252F%
252Fauth.sso.edu.tw
%252Fcncreturnpage%26state%3DuM-FQQns-5eRlYChKVQXl7omEbSDOHpQiPjPVGmNF1U%

any opinions?
--------------------------------------------------------------------
----------------------------------->
To boldly go where no man has gone before.
--------------------------------------------------------------------
----------------------------------->
We do this not because it is easy. We do this because it is hard.
-----------------------------------------------------------------
-------------------------------------->
If I have seen further it is by standing on the shoulders of giants.
----------------------------------------------------------
--------------------------------------------->
front713@gmail.com
--------------------------------------------------------------------------------------------->

Re: Wired PageParameter issue

Posted by Shengche Hsiao <sh...@gmail.com>.
I found the cause , it's undertow's restiction.

On Thu, Jan 23, 2020 at 12:23 AM ShengChe Hsiao <fr...@gmail.com> wrote:

> Dear all
>
> I transfer my website (Apache Wicket 8.5.0 + Oracle Server JRE 8 + Wildfly
> 10) with new runtime environment: OpenJ9 11 and Wildfly 18.0.1 Final
>
> URL redirectTo = new URL(request.getEndpointURI() + "?" + queryString);
> logger.info("\nRedirect To MOE OIDC : {}", redirectTo);
>
> getClientSession().setReAuthRequest(redirectTo.toString().concat("&prompt=none"));
>
> PageParameters params = new PageParameters();
> params.add("redirecturi", redirectTo.toString());
> setResponsePage(WaitingPage.class, params);
>
>
> on old environment , I can get correct redirecturi on WaitingPage, such as
> https://xxx.xxx.xxx/waiting?redirecturi=*https://xxx.xxx.xxx.xx/
> <https://xxx.xxx.xxx.xx/>*
>
> oidc/v1/azp%3Fscope%3Dopenid%2Bexchangedata%26response_type%3Dcode%26redirect_uri%3Dhttps%253A%252F%
> 252Fauth.sso.edu.tw
> %252Fcncreturnpage%26state%3DuM-FQQns-5eRlYChKVQXl7omEbSDOHpQiPjPVGmNF1U%
>
> but on new environment , I cannot get it work, because the resulting url
> was :
> https://xxx.xxx.xxx/waiting?redirecturi=*https:/xxx.xxx.xxx.xx/*
>
> oidc/v1/azp%3Fscope%3Dopenid%2Bexchangedata%26response_type%3Dcode%26redirect_uri%3Dhttps%253A%252F%
> 252Fauth.sso.edu.tw
> %252Fcncreturnpage%26state%3DuM-FQQns-5eRlYChKVQXl7omEbSDOHpQiPjPVGmNF1U%
>
> any opinions?
> --------------------------------------------------------------------
> ----------------------------------->
> To boldly go where no man has gone before.
> --------------------------------------------------------------------
> ----------------------------------->
> We do this not because it is easy. We do this because it is hard.
> -----------------------------------------------------------------
> -------------------------------------->
> If I have seen further it is by standing on the shoulders of giants.
> ----------------------------------------------------------
> --------------------------------------------->
> front713@gmail.com
>
> --------------------------------------------------------------------------------------------->
>


-- 

----------------------------------------------------------------------->
We do this not because it is easy. We do this because it is hard.
----------------------------------------------------------------------->
ShengChe Hsiao
----------------------------------------------------------------------->
front713@gmail.com
front713@tc.edu.tw
----------------------------------------------------------------------->
VoIP : 070-910-2450
----------------------------------------------------------------------->