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

Bug in WicketTester when submitting forms

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.4.1, 1.4.2, 1.4.3
    • 1.4.4
    • wicket
    • None

    Description

      When submitting a form in a test using WicketTester for an Application that has a RequestCycleProcessor that uses the CryptedUrlWebRequestCodingStrategy, Wicket redirects to the HomePage. It seems that WicketTester can't figure out wich component actually submits the form because PageParameter "path" is undefined, so it decides to redirect to the HomePage. This can be checked in WebRequestCycleProcessor#resolve(RequestCycle, RequestParameters).

      The attached QuickStart reproduces the bug. After fixing it, the TestOtherPage test should pass.

      Attachments

        1. QuickStart.zip
          12 kB
          Martín Bigio

        Issue Links

          Activity

            People

              ivaynberg Igor Vaynberg
              martin.bigio Martín Bigio
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: