Bug 1283208

Summary: KieServerClient JSON marshaling does not work for QueryResults and FactHandles
Product: [Retired] JBoss BPMS Platform 6 Reporter: Maciej Swiderski <mswiders>
Component: Kie-ServerAssignee: Edson Tirelli <etirelli>
Status: CLOSED EOL QA Contact: Karel Suta <ksuta>
Severity: unspecified Docs Contact:
Priority: high    
Version: 6.1.0CC: agiertli, etirelli, kverlaen, lpetrovi, rrajasek
Target Milestone: CR2   
Target Release: 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 20:00:45 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1315636, 1315767    

Description Maciej Swiderski 2015-11-18 13:01:43 UTC
Description of problem:
in case JSON (and JAXB to some extent - when no classes are added to JAXB context such as FlatQueryResults) it will client side will not properly deserialize response to proper object types.

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


How reproducible:
use JSON or JAXB content type and execute rules that involved use of QueryCommand to collect results
KieServerClient must be used as it's responsible for unmarshmaling response to complete object structure starting at ExecutionResultImpl


Steps to Reproduce:
1.
2.
3.

Actual results:
response is partially unmarshalled and query results are unmarshalled to map of maps which is default for JSON unmarshaller when it cannot find proper object type

Expected results:
complete object is produced without map of maps for queries and fact handles

Additional info:

Comment 4 Karel Suta 2015-12-02 15:05:52 UTC
Verified in 6.2.0CR2.

Comment 5 Edson Tirelli 2016-04-07 02:07:48 UTC
*** Bug 1315636 has been marked as a duplicate of this bug. ***