Bug 1202321 - Chrome: jbpm-forms-rest-integration.js errors when working with task forms
Summary: Chrome: jbpm-forms-rest-integration.js errors when working with task forms
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Form Modeler
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: DR1
: 6.2.0
Assignee: Pere Fernàndez
QA Contact: Andy Taylor
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-16 11:55 UTC by Jan Hrcek
Modified: 2020-03-27 20:03 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-27 20:03:34 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
simple web app used for testing embeded forms feature (7.22 KB, application/zip)
2015-03-16 11:55 UTC, Jan Hrcek
no flags Details

Description Jan Hrcek 2015-03-16 11:55:04 UTC
Created attachment 1002226 [details]
simple web app used for testing embeded forms feature

Description of problem:
When using google chrome (current latest version 39) When I load a process startform / task form using jbpm-forms-rest-integration.js app and then try to use the form (i.e. start process, claim / complete task) I'm getting javascript error: undefined is not a function.

The error seems to be caused by line 9 in jbpm-forms-rest-integration.js:
lastConfig.host.startsWith(event.origin)

-> lastConfig is not null, but host is null;

Version-Release number of selected component (if applicable):
BPM Suite 6.1.0 ER6

How reproducible:
Always

Steps to Reproduce:
1. Open process start form loaded using jbpm-forms-rest-integration.js in google chrome
2. Start the process using this form

Actual results:
Javascript error in browser javascript console (F12) and the function defined by "successCallback" / "errorCallback" parameters in showStartProcessForm are not called

Expected results:
No javascript error, and success/error callbacks are called.

Additional info:
Attached simple web app used for testing embedded forms feature

Comment 1 Jan Hrcek 2015-03-16 11:58:27 UTC
Additional info: in Firefox this is working without errors: after I load for example task form, then I can claim/start/complete the task using the same loaded form. In Chrome the error is thrown after first click on claim/start/complete and then it's no longer possible to work with the form.

Comment 2 Pere Fernàndez 2015-06-12 10:22:41 UTC
It seems that's been already fixed on a previous commit.

Commit (master): https://github.com/droolsjbpm/kie-wb-distributions/commit/17c6b81bea6301cd057a7bbb5b4ebde8d441cb58

Comment 3 Jan Hrcek 2015-08-06 07:06:56 UTC
Ok, now it works flawlessly. Verified with BPM Suite 6.2.0 DR1 + Chrome 44.


Note You need to log in before you can comment on or make changes to this bug.