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

ListenerInterfaceRequestHandler fails with an exception if a new page is created and the component does not exist on that page

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.2
    • 1.5.3
    • wicket
    • None

    Description

      ListenerInterfaceRequestHandler.response looks up the component on the page, but does not handle ComponentNotFoundException thrown by PageAndComponentProvider when the component does not exist. A situation where this might occur, is that the page instance is fresh and the component is added in onBeforeRender.

      The attached quickstart demonstrates the problem. Copy the URL of the link at the bottom, paste it in the location bar and change the page id, simulating an expired page (ie session timeout). This will give a ComponentNotFoundException.

      Attachments

        1. 0002-WICKET-4197.patch
          1 kB
          Emond Papegaaij
        2. quickstart.tar.bz2
          20 kB
          Emond Papegaaij

        Activity

          People

            ivaynberg Igor Vaynberg
            papegaaij Emond Papegaaij
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: