Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-6651

Redirecting with ResetResponseException does not work anymore

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 8.4.0
    • 9.0.0-M1, 8.5.0
    • wicket-core
    • None

    Description

      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:

      public class RestartResponseWithStatusCodeException extends ResetResponseException {
         
         public RestartResponseWithStatusCodeException(final String url, final int statusCode) {
            super(new RedirectRequestHandler(url, statusCode));
         }
      
      }

      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.

      Attachments

        1. ajax-redirect.zip
          33 kB
          Thomas Heigl

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              thomas.heigl Thomas Heigl
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: