Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-12988

Calling $response.redirect() does not send the redirect to the client immediately

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 7.4
    • Old Core
    • Unknown

    Description

      $response.redirect() does not redirect immediately, it let the whole page rendering before sending the 302 response back.

      Compare a page containing this macro with the #stop commented or not:

      {{velocity}}
      $response.sendRedirect($xwiki.getURL('Main.WebHome', 'view'))
      ##stop
      #foreach( $cnt in [1..10000000] )
      #end
      {{/velocity}}
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              softec Denis Gervalle
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: