Bug 1319546 - Marshalling of results are done twice resulting in a malformed response
Summary: Marshalling of results are done twice resulting in a malformed response
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Kie-Server
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ER3
: 6.3.0
Assignee: Edson Tirelli
QA Contact: Karel Suta
URL:
Whiteboard:
Depends On:
Blocks: 1319548
TreeView+ depends on / blocked
 
Reported: 2016-03-21 02:01 UTC by Alessandro Lazarotti
Modified: 2020-03-27 20:04 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1319548 (view as bug list)
Environment:
Last Closed: 2020-03-27 20:04:14 UTC
Type: Bug


Attachments (Terms of Use)

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


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