Uploaded image for project: 'Hippo Site Toolkit 2'
  1. Hippo Site Toolkit 2
  2. HSTTWO-3689

[Backport 3.2] Cannot persist form data using async components

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 3.2.1
    • Fix Version/s: 3.2.2
    • Component/s: None
    • Labels:
    • Similar issues:
    • Processed by team:
      Platform
    • Sprint:
      Platform sprint 131, Platform Sprint 132

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: