Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-3689

[Backport 3.2] Cannot persist form data using async components

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 3.2.1
    • 3.2.2
    • None

    Description

      As suggested here by w.ko, maybe I hit a bug.
      The high level steps to reproduce this issue are the following:

      • define an async component,
      • send AJAX (post) requests to that component using the resourceURL
      • persist form data using FormUtils#persistFormMap()

      After the last step I receive an UnsupportedOperationException: " Resource response is not allowed to invoke setRenderParameter(). at org.hippoecm.hst.core.component.HstResourceResponseImpl.setRenderParameter(HstResourceResponseImpl.java:101)". IMO the reason is the type of the request received by the doBeforeServeResource method.

      As suggested by Woonsan, " FormUtils#persistFormMap() shouldn't have invoked on HstResponse#setRenderParameter()". Is it sufficient to remove this line of code from the persistFormMap method ?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              aschrijvers Ard Schrijvers
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: