Tapestry 5
  1. Tapestry 5
  2. TAP5-1235

The interaction between a Form component and the active page can be problematic when there is an error loading a page

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.2.0
    • Fix Version/s: 5.2.1
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      This only occurs when there's an overridden ExceptionReport page, and it contains a Form. Presumably, an app that redirects to another application page instead of ExceptionReport could also be affected.

      Form uses RequestGlobals.activePageName to fire an event on the active page; in an error, that is often the page that could not be loaded. This results in another exception and a 500 response to the user. Very hard to track down.

      This could be solved by changing some code to update the active page name just as the response starts to render; this would ensure that the Form is able to communicate with the correct (rendering) page.

      Also, the Form should be more capable of dealing with no active page (RequestGlobals.activePageName is null).

        Activity

        Hide
        Igor Drobiazko added a comment -

        This issue is related to TAP5-1234

        Show
        Igor Drobiazko added a comment - This issue is related to TAP5-1234
        Hide
        Christophe Cordenier added a comment - - edited

        This is also related to TAP5-1201

        We have to consider the loopback feature too

        Show
        Christophe Cordenier added a comment - - edited This is also related to TAP5-1201 We have to consider the loopback feature too
        Hide
        Hudson added a comment -

        Integrated in tapestry-5.2-freestyle #173 (See https://hudson.apache.org/hudson/job/tapestry-5.2-freestyle/173/)
        TAP5-1235: The interaction between a Form component and the active page can be problematic when there is an error loading a page

        Show
        Hudson added a comment - Integrated in tapestry-5.2-freestyle #173 (See https://hudson.apache.org/hudson/job/tapestry-5.2-freestyle/173/ ) TAP5-1235 : The interaction between a Form component and the active page can be problematic when there is an error loading a page

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Howard M. Lewis Ship
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development