Bug 1244966

Summary: REST Task query parameter is removed when we edit the process and save it
Product: [Retired] JBoss BPMS Platform 6 Reporter: William Antônio <wsiqueir>
Component: jBPM DesignerAssignee: Tihomir Surdilovic <tsurdilo>
Status: CLOSED EOL QA Contact: Kirill Gaevskii <kgaevski>
Severity: unspecified Docs Contact:
Priority: high    
Version: 6.1.0CC: kverlaen
Target Milestone: ER3   
Target Release: 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 20:08:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
A video that shows the issue with rest query parameters none

Description William Antônio 2015-07-20 22:14:28 UTC
Created attachment 1054052 [details]
A video that shows the issue with rest query parameters

Description of problem:

REST Task query parameter is removed when we edit the process and save it.

Version-Release number of selected component (if applicable):
n/a

How reproducible:

Always

Steps to Reproduce:
1. Create a simple process that uses the REST Task Service;
2. Set as the process URL some URL that uses the query parameter e.g. "http://google.com?q=test" and set the method GET;
3. Save the process close it, and remove it;
4. Edit something and save the process. Open it again.

Actual results:

The REST Task Service URL will comes with a URL missing the query parameters. In our example above the URL will be "http://google.com?q"

Expected results:

It should keep the URL as it is.

Additional info:


It looks like a "problem"(not actually a problem) on how the Bpmn2JsonUnmarshaller handlers assignments:

https://github.com/droolsjbpm/jbpm-designer/blob/6.1.x/jbpm-designer-backend/src/main/java/org/jbpm/designer/bpmn2/impl/Bpmn2JsonUnmarshaller.java#L4649-L4664

It seems to not expect more than a "=" sign in the assignment.

Also, it was tried the workaround to use "||" instead "=" which does not work.

The actual workaround is: use a process variable to hold the URL value and assign it to the REST Task Service URL.

Attached you can see a video that demonstrates this issue.