Re: Wired PageParameter issue

2020-01-22 Thread Shengche Hsiao
I found the cause , it's undertow's restiction.

On Thu, Jan 23, 2020 at 12:23 AM ShengChe Hsiao  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/
> *
>
> 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.
> --
> ->
> front...@gmail.com
>
> ->
>


-- 

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


Wired PageParameter issue

2020-01-22 Thread ShengChe Hsiao
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/
*
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.
--
->
front...@gmail.com
->