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

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

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 7.4
    • Fix Version/s: None
    • Component/s: Old Core
    • Labels:
    • Difficulty:
      Unknown
    • Similar issues:

      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

              • Assignee:
                Unassigned
                Reporter:
                softec Denis Gervalle
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Date of First Response: