[ 
https://issues.apache.org/jira/browse/WICKET-6651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16812458#comment-16812458
 ] 

Thomas Heigl commented on WICKET-6651:
--------------------------------------

Ok this was much easier to reproduce than I though. Start the attached 
quickstart ([^ajax-redirect.zip]) and open it via https://localhost:8443, then 
click on "Redirect Me".

The response has the following headers:

{code}
HTTP/1.1 301 Moved Permanently
Date: Mon, 08 Apr 2019 14:07:05 GMT
Transfer-Encoding: Identity
Server: Jetty(9.4.15.v20190215)
Ajax-Location: https://localhost:8443/
{code}

Wicket logs the following error:

{code}
Wicket.Ajax:  – "Wicket.Ajax.Call.failure: Error while parsing response: Moved 
Permanently"
{code}

The same code works on 8.3.0.

> Redirecting with ResetResponseException does not work anymore
> -------------------------------------------------------------
>
>                 Key: WICKET-6651
>                 URL: https://issues.apache.org/jira/browse/WICKET-6651
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 8.4.0
>            Reporter: Thomas Heigl
>            Priority: Major
>         Attachments: ajax-redirect.zip
>
>
> After upgrading from 8.3.0 to 8.4.0 redirecting with 
> {{ResetResponseException}} does not work anymore.
> I'm using the following exception to redirect on some of my pages:
> {code:java}
> public class RestartResponseWithStatusCodeException extends 
> ResetResponseException {
>    
>    public RestartResponseWithStatusCodeException(final String url, final int 
> statusCode) {
>       super(new RedirectRequestHandler(url, statusCode));
>    }
> }{code}
> This is most definitely caused by WICKET-6638.
> I don't have time to prepare a quickstart right now, but maybe someone knows 
> what's going on? We discovered the issue on our stateless public pages, so it 
> might also be related to statelessness.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to