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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.8
    • Fix Version/s: 1.5.9, 6.3.0
    • Component/s: wicket-devutils
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: