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

Bug in WicketTester when submitting forms

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.4.1, 1.4.2, 1.4.3
    • Fix Version/s: 1.4.4
    • Component/s: wicket
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: