[jboss-jira] [JBoss JIRA] (DROOLS-3075) Set XStream mode via http header

Mario Fusco (Jira) issues at jboss.org
Mon May 25 13:45:24 EDT 2020


     [ https://issues.redhat.com/browse/DROOLS-3075?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mario Fusco reassigned DROOLS-3075:
-----------------------------------

    Assignee: Toshiya Kobayashi  (was: Mario Fusco)


> Set XStream mode via http header
> --------------------------------
>
>                 Key: DROOLS-3075
>                 URL: https://issues.redhat.com/browse/DROOLS-3075
>             Project: Drools
>          Issue Type: Feature Request
>          Components: kie server
>    Affects Versions: 7.11.0.Final
>            Reporter: Giovanni Martano
>            Assignee: Toshiya Kobayashi
>            Priority: Minor
>
> Currently kie-server only supports XPath references in XStream. Add a http header to make kie-server's XStream marshaller call:
> {code}
>   xStream.setMode(XStream.ID_REFERENCES);
> {code}
> Motivation by community user:
> It's very usefull for projects developed via kie-wb to set XStream mode (ID or ID_REFERENCES) similar to how there's a http parameter to switch between xstream xml, jaxb xml and jackson json.
> Actually when submit to kie-server an xml body to post for solution (optaplanner feature) an error *com.thoughtworks.xstream.converters.ConversionException: Invalid reference* is raised by kie-server, if the xml have reference to facts using id's instead of XPath.
> XML with XPath reference is very hard to read for users and to produce dinamically for app that post/get xml data via rest api.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list