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

WicketTester Cookie handling

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.5, 1.4-RC1
    • 1.3.6, 1.4-RC2, 1.4.16
    • None
    • None

    Description

      While trying to test my SecureForm implementation (https://issues.apache.org/jira/browse/WICKET-1885) with WicketTester I ran into this issue: A cookie set in the response never shows up in the "next" request, because both have their own lists of cookies that aren't shared.

      Afaik both should share the same List instance to handle cookies. That way its possible to set a cookie in the response and read it from the request.

      A simple testcase is attached.

      Attachments

        1. WICKET-1886-test-fix.patch
          3 kB
          Pedro Santos
        2. WICKET-1886.patch
          2 kB
          Pedro Santos
        3. WICKET-1886__SecureForm_and_failing_test.patch
          7 kB
          Timo Heikki Rantalaiho
        4. patch-WICKET-1886.diff
          3 kB
          Bruno Borges
        5. CookieTest.java
          0.4 kB
          Jörn Zaefferer

        Activity

          People

            pedrosans Pedro Santos
            joern.zaefferer Jörn Zaefferer
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: