Bug 1003024 - Signal process instance request via REST API requires both the XML body and form parameters
Summary: Signal process instance request via REST API requires both the XML body and f...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ER4
: 6.0.0
Assignee: Marco Rietveld
QA Contact: Ivo Bek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-30 14:01 UTC by Ivo Bek
Modified: 2016-09-20 05:04 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:12:58 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ivo Bek 2013-08-30 14:01:19 UTC
Description of problem:

There is no need to send any XML body for signal process instance method since all the required params are send within form. Now it's not possible to send the signal request because I cannot fulfill the Consumes(xml) requirement.
Hint: It should be enough to remove the Consumes annotation. https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/kie-remote/kie-services-remote/src/main/java/org/kie/services/remote/rest/RuntimeResource.java#L119

I use following request with the form parameters.

ClientRequest restRequest = createRequest(address);
restRequest.accept("application/xml");

restRequest.formParameter("eventType", eventType);
restRequest.formParameter("event", event);

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Marco Rietveld 2013-09-03 13:54:48 UTC
Fixed with this commit: 

https://github.com/droolsjbpm/droolsjbpm-integration/commit/b366d3d12b81a779c4492443fcb2ad469afefbbf

Please set the milestone and set to MODIFIED. 
Thanks!

Comment 6 Ivo Bek 2013-10-15 11:39:19 UTC
Verified in BPMS 6.0.0.ER4


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