Bug 1319546

Summary: Marshalling of results are done twice resulting in a malformed response
Product: [Retired] JBoss BRMS Platform 6 Reporter: Alessandro Lazarotti <alazarot>
Component: Kie-ServerAssignee: Edson Tirelli <etirelli>
Status: CLOSED EOL QA Contact: Karel Suta <ksuta>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.2.0CC: kverlaen, rrajasek
Target Milestone: ER3   
Target Release: 6.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1319548 (view as bug list) Environment:
Last Closed: 2020-03-27 20:04:14 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:
Bug Depends On:    
Bug Blocks: 1319548    

Description Alessandro Lazarotti 2016-03-21 02:01:27 UTC
Description of problem:

When a request to kie-server is performed two Marhalling operations are done: one for "result" and a second for the rest of the payload with container information.

In a JSON respose, the first marshalling is added to the second as regular String, so when the second marshalling happens it adds additional quotes and escape characters to the result, due that a parse can not be done directly in client side.

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

How reproducible:
Always

Steps to Reproduce:

- send to kie-server a json request to fire-all-rules including any fact with an "out-identifier", to make sure that a result will be sent back in the response containing that fact handle. 

Actual results:
- The result is returned in the response inside a String instead of a valid JSON format. That happens due the double marshalling. 

Expected results:
- the response should return a valid json format for "result" instead of a String.

Comment 4 Karel Suta 2016-04-01 12:38:10 UTC
Commit missed ER2 tag, moving back to modified.

Comment 5 Karel Suta 2016-04-18 08:05:46 UTC
Verified in 6.3.0ER3