Fix @kogito-apps/form-displayer issues when establishing the envelope connection #524
Labels
area:form-generation-tool
area:tools
Issues affecting Apache KIE tooling projects
type:bug
Something is behaving unexpectedly
The
@kogito-apps/form-displayer
React component is the component in charge of displaying the custom forms generated by the form-generation-tool. This component is embedded by other components like@kogito-apps/task-form
&@kogito-apps/form-details
.Due to some recent changes it cannot initialize its envelope accordingly and cannot display any form. Looking at the console there are some logs like:
Failed to execute 'postMessage' on 'Window': Invalid target origin 'null' in a call to 'postMessage'.
.Apparently looks like the component isn't getting the right
targetOrigin
from the parent component that is embeding it.This error makes the form not able to work fine and causes different issues in task-form and form-details component
Steps to reproduce (for form-details):
pom.xml
add a dependency to theruntime-tools-quarkus-extension
mvn clean quarkus:dev
)http://locahost:8080/q/dev
) and click on the Forms link inside the Runtime Tools Quarkus ExtensionSteps to reproduce (for task-form):
pom.xml
add a dependency to theruntime-tools-quarkus-extension
mvn clean quarkus:dev
)http://locahost:8080/q/dev
) and click on the Process Instances link inside the Runtime Tools Quarkus Extension and start a new process instanceThe text was updated successfully, but these errors were encountered: