You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Tzvetanov Grigorov (Jira)" <ji...@apache.org> on 2020/04/20 21:19:00 UTC

[jira] [Resolved] (WICKET-6764) RedirectToUrlException change the second question mark in URL from "?" to "%3F"

     [ https://issues.apache.org/jira/browse/WICKET-6764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Tzvetanov Grigorov resolved WICKET-6764.
-----------------------------------------------
    Resolution: Not A Problem

You can use RedirectToUrlException(url, code) where code is either 301 or 303 to avoid the url encoding.

Changing this behavior for 302 (the default) is too risky and might break many applications in production.

> RedirectToUrlException change the second question mark in URL from "?" to "%3F"
> -------------------------------------------------------------------------------
>
>                 Key: WICKET-6764
>                 URL: https://issues.apache.org/jira/browse/WICKET-6764
>             Project: Wicket
>          Issue Type: Bug
>    Affects Versions: 8.2.0, 8.7.0
>            Reporter: Arkadiy Churilov
>            Priority: Major
>         Attachments: myproject.zip
>
>
> {code:java}
> String url = "https://test.com/test?https://test.com/test?param=value";
> throw new RedirectToUrlException(url);
> {code}
> It redirects to [https://www.test.com/test?https://test.com/test%3Fparam=value]
> [https://test.com/test?https://test.com/test?param=value] is expected.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)