Wicket
  1. Wicket
  2. WICKET-3471

WicketTester checkUsability is called before the request has started

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.15
    • Fix Version/s: 1.4.18, 1.5-RC5
    • Component/s: wicket
    • Labels:
      None

      Description

      For example, when clicking a link, the checkUsability method is called with the link before RequestCycle.onBeginRequest has been called. This causes tests to fail when, for example, the link has a security check that requires the request cycle. I've created a quickstart that demonstrates the problem.

      1. quickstart.tar.bz2
        5 kB
        Emond Papegaaij
      2. WICKET-3471.patch
        8 kB
        Pedro Santos
      3. WICKET-3471.patch
        4 kB
        Martijn Dashorst

        Activity

        Emond Papegaaij created issue -
        Emond Papegaaij made changes -
        Field Original Value New Value
        Attachment quickstart.tar.bz2 [ 12471709 ]
        Martijn Dashorst made changes -
        Attachment WICKET-3471.patch [ 12471828 ]
        Pedro Santos made changes -
        Attachment WICKET-3471.patch [ 12471835 ]
        Martijn Dashorst made changes -
        Comment [ if no objections arise, I'd like to commit this.

        One objection could be that onBeginRequest is called twice. ]
        Martin Grigorov made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Martin Grigorov [ mgrigorov ]
        Fix Version/s 1.4.18 [ 12316329 ]
        Fix Version/s 1.5-RC5 [ 12316423 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Martin Grigorov
            Reporter:
            Emond Papegaaij
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development