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

org.apache.wicket.MarkupContainer swallows AbortException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.3.4, 1.4-M1
    • wicket
    • None

    Description

      MarkupContainer#onBeforeRenderChildren() will catch exceptions of type org.apache.wicket.AbortException and remap them to a WicketRuntimeException. This is obviously wrong.

      For example when throwing a RestartResponseException the exception will be remapped to WicketRuntimeException and the response will not be restarted but the error page will be shown.

      I attached a usecase to demonstrate this bug.

      Attachments

        1. wicket-patch
          2 kB
          Igor Vaynberg
        2. wicket-1418-pertl.patch
          1.0 kB
          Peter Ertl
        3. wicket133.patch
          7 kB
          Maurice Marrink
        4. bugtest.zip
          6 kB
          Peter Ertl

        Activity

          People

            mrmean Maurice Marrink
            pete Peter Ertl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: