Json deserialization throws "unknown property" exception due to usage of wrong Jax-rs Provider

Description

It is currently not possible to use the BusinessServiceRestService ("/business-services") REST API with Json.

Somehow the Rest implementation uses the JacksonJsonProvider instead of the JaxbJacksonJsonProvider. This means that all JAXB annotations (e.g. @XmlElement) are not interpreted correctly and an Excepetion is thrown while deserializing a Java Object to Json (due to missing @JsonProperty annotations).

For now I disabled tests which try to serialize/deserialize Json objects (via Rest). Be aware that serialize/deserialize in the unmarshal tests (e.g. IpServiceResponseDTOMarshalTest) works just fine.

To reproduce this issue navigate to the class BusinessServiceRestServiceIT and uncomment the lines which send Json formatted data to the Rest Service Implementation, e.g.

Both Xml and Json should work.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:
Fixed

Details

Assignee

Reporter

Components

Sprint

Fix versions

Priority

PagerDuty

Created January 19, 2016 at 11:55 AM
Updated May 19, 2016 at 5:51 AM
Resolved April 13, 2016 at 12:40 PM