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

BaseWicketTester discards cookies with MaxAge = -1 when processing a new request

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5.8
    • 1.5.9, 6.3.0
    • wicket-devutils
    • None

    Description

      BaseWicketTesters' method processRequest only copies cookies with maxAge > 0 to the new request, discarding cookies with maxAge = -1. However http://docs.oracle.com/javaee/1.4/api/javax/servlet/http/Cookie.html#getMaxAge%28%29 states that cookies with maxAge = -1 are session cookies, and should be deleted when the browser is closed, not when a new request is handled.

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            pavel.dubina Pavel Dubina
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: