Fixed
Details
Assignee
Jesse WhiteJesse WhiteReporter
Markus von RüdenMarkus von Rüden(Deactivated)Components
Sprint
NoneFix versions
Priority
Blocker
Details
Details
Assignee
Jesse White
Jesse WhiteReporter
Markus von Rüden
Markus von Rüden(Deactivated)Components
Sprint
None
Fix versions
Priority
PagerDuty
PagerDuty
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
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.