Details
-
Bug
-
Resolution: Done
-
Major
-
jboss-fuse-6.2.1, jboss-fuse-6.3
-
None
-
None
-
%
-
-
Sprint 5 - towards ER2
Description
The @JsonIgnore attribute applied to a data model attribute should prevent that attribute being rendered into JSON when using camel-jackson marshalling. This is sometimes necessary if the attribute cannot correctly be rendered (for example, as in the test case, it forms a circular reference).
When a Camel route that marshalls to JSON is deployed on EAP 6.4.0, the @JsonIgnore attribute appears to have no effect. In a unit test, however (where, I presume, the artefacts will all match Fuse 6.2.1 versions) the attribute does what it is supposed to.
I surmise that this problem is caused by some variance between the Jackson or other JSON bits in Fuse on EAP, compared to Fuse.