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

WicketTester should send copies of its cookies

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.9, 6.4.0
    • 1.5.10, 6.7.0
    • wicket
    • None
    • any

    Description

      There are some bugs related to cookie handling in BaseWicketTester.

      Problem 1) a cookie set in the request should not be in the response unless manually set by the server code

      Problem 2) wicket tester sends the original cookie instance to the server. If the server code manipulates the cookie anyhow (e.g. change its value) but do not send it back explicitly in the response then the original cookie in WicketTester (the request cookie) is updated while it shouldn't be.

      A possible solutions for these problems can be found at:
      https://github.com/apache/wicket/pull/28

      Attachments

        1. quickstart-basewickettester-bug.zip
          25 kB
          Michael Mosmann

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              michael.mosmann Michael Mosmann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: