Bug 1222843 - JSON request are not supported in /containers/{id}
Summary: JSON request are not supported in /containers/{id}
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Kie-Server
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ER3
: 6.2.0
Assignee: Edson Tirelli
QA Contact: Karel Suta
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-19 09:43 UTC by Anton Giertli
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:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Anton Giertli 2015-05-19 09:43:14 UTC
Description of problem:
it is not possible to send JSON POST REST Request to  /containers/{id} endpoint of Decision Server.

JSON is supported only for provisioning api- E.g: create-container, list-containers, dispose-container and call-container.

but not for actual rule execution - i.e. fire all rules

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

How reproducible:
always

Steps to Reproduce:
1. Send JSON command to the decision server, i.e.:
{"batch-execution":{"commands":[{"insert":{"out-identifier":"f1","return-object":true,"entry-point":"DEFAULT","object":{"com.esrx.ref.testproject.Bean1":{"name":"Robert"}}}},{"fire-all-rules":{"out-identifier":"myFireCommand"}}]}}

2. Server responds with:
<response type="FAILURE" msg="Error calling container SecondContainer: com.thoughtworks.xstream.io.StreamException:  : only whitespace content allowed before start tag and not { (position: START_DOCUMENT seen {... @1:1) "/>

Actual results:
JSON commands are not supported

Expected results:
JSON commands are supported

Additional info:

Comment 6 Edson Tirelli 2015-09-04 19:10:16 UTC
This is done in 6.2

Comment 7 Karel Suta 2015-10-06 08:45:35 UTC
Verified in 6.2.0.ER3.


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