sumitkathuria wrote:
> Hello,
>
> We are in process of integrating our application with the third party
> application and during the auth flow, The wicket is not returning the
> correct parameter value when the third party application passes the
> parameter value containing = operator.
>
> After doing the initial investigation, i came to know that there is function
> in URL class which splits the query parameter key value string based upon
> "=" operator which is causing problem.
>
> /private static QueryParameter parseQueryParameter(final String qp, final
> Charset charset)
> {
> if (qp.indexOf('=') == -1)
> {
> // name => empty value
> return new QueryParameter(decodeParameter(qp, charset),
> "");
> }
>
> String parts[] = Strings.split(qp, '=');
IMO, this call is wrong. It should be
String parts[] = Strings.split(qp, '=', 2);
I'd file a bug and patch the code locally.
> return new QueryParameter(decodeParameter(parts[0], charset),
> decodeParameter(parts[1],
> charset));
> }/
>
> It would be really helpful if some one can suggest me the resolution for
> this issue. It is not possible for us to ask third party application for
> encoding the URL parameters, we have to do something at our end only.
Cheers,
Joachim
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod, Roedermark, Germany
Email: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]