Bug 1244966 - REST Task query parameter is removed when we edit the process and save it
Summary: REST Task query parameter is removed when we edit the process and save it
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: jBPM Designer
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ER3
: 6.2.0
Assignee: Tihomir Surdilovic
QA Contact: Kirill Gaevskii
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-20 22:14 UTC by William Antônio
Modified: 2020-03-27 20:08 UTC (History)
1 user (show)

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


Attachments (Terms of Use)
A video that shows the issue with rest query parameters (1.59 MB, application/octet-stream)
2015-07-20 22:14 UTC, William Antônio
no flags Details

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.


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