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

Test fail when non empty model is set to PasswordTextField

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 8.0.0-M1, 7.5.0
    • 8.0.0-M2, 7.5.0
    • wicket
    • None
    • JUnit tests with WicketTester.

    Description

      Since WICKET-6211 changes, when we set a non empty model to PasswordTextField, junit tests which try to start and assert rendered page failed.

      This is due to the clean of password text field model object, when component is detached, which makes the page dirty, then create a new page id and finally send a redirect. At the end we have an infinite loop in request execution, and test failed on "Possible infinite redirect detected. Bailing out.".

      One possible solution is to change the call setModelObject(null) (responsible of dirty state) by getModel().setObject(null) in PasswordTextField.

      Attachments

        Issue Links

          Activity

            People

              svenmeier Sven Meier
              kevin94420 Kevin Leturc
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: