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

BufferedWebResponse fails to add/clear cookie in redirect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.4
    • 1.5.8, 6.0.0-beta3
    • wicket
    • Firefox 9

    Description

      bufferedWebResponse.addCookie( cookie );

      That fails under certain conditions: (1) when called on the last of three 302 redirects during OpenID login; and (2) on single redirect immediately after container startup, though it later recovers. Failure confirmed in Firebug; no cookies sent in any of the response headers. My workaround is to bypass the buffered response. This works:

      ((HttpServletResponse)bufferedWebResponse.getContainerResponse()).addCookie( cookie );

      Attachments

        1. WICKET-4358.patch
          2 kB
          Martin Tzvetanov Grigorov
        2. wicket-4358.zip
          28 kB
          Bertrand Guay-Paquet
        3. wicket-bug-4358.tar.bz2
          38 kB
          Michael Allan

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            mcallan Michael Allan
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: