Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-2471

Parameter fields that are updated during component event processing (such as a form submit) may not clear their values at the end of the request

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 5.0.13
    • 5.0.14
    • tapestry-core
    • None

    Description

      The logic for clearing a component parameter field is added as so:

      extend method: public void postRenderCleanup()
      if (! _$model_invariant)
      {
      model = _$model_default;
      _$model_cached = false;
      }

      The problem is that this postRenderCleanup() is invoked after the component finishes rendering. If a parameter is updated as part of a form submission, this code is not called, and the parameter value is left behind. This can lead to leaks, as the parameter value is not cleared before the page is returned to the pool.

      The solution is to extend the method containingPageDidDetach() as well.

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            hlship Howard Lewis Ship
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: