Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-1087

RedirectServlet must not redirect if the response is committed or in included requests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Servlets Get 2.0.4
    • Servlets Get 2.0.8
    • Servlets
    • None

    Description

      If a redirect resource is rendered with the RedirectServlet. This servlet should not actually do the redirect if (a) the request has already been committed (to prevent an IllegalStateException) and/or if (b) the request is an included one (we don't expect such things in included requests)

      The fix is probably to add such a check at the beginning of the RedirectServlet.doGet method:

      if (response.isCommitte())

      { log warn return; } else if (response is included) { log warn return; }

      Attachments

        Issue Links

          Activity

            People

              fmeschbe Felix Meschberger
              fmeschbe Felix Meschberger
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: