Configure jackson to turn off FAIL_ON_UNKNOWN_PROPERTIES. This ensures that Jackson is 46/1246/1
authorPrasanth Pallamreddy <ppallamr@cisco.com>
Tue, 17 Sep 2013 21:18:02 +0000 (14:18 -0700)
committerPrasanth Pallamreddy <ppallamr@cisco.com>
Wed, 18 Sep 2013 03:15:08 +0000 (20:15 -0700)
commita2dcbe15c2d3a00b3cd9a4d9484530904dfc846d
tree3dda76aa1732211dcb721ed2e4b1118d558f83bd
parentbd396fa9b759466b8e9cd9b0ac64ee99406f72e7
Configure jackson to turn off FAIL_ON_UNKNOWN_PROPERTIES. This ensures that Jackson is
more lenient when it sees extra attributes in the request payload. Add custom exception
mapper for handling jackson json exceptions during deserialization

Change-Id: Id2da67b4edfc92f1d11e41fd349814c2de05079c
Signed-off-by: Prasanth Pallamreddy <ppallamr@cisco.com>
opendaylight/northbound/commons/pom.xml
opendaylight/northbound/commons/src/main/java/org/opendaylight/controller/northbound/commons/JacksonJsonProcessingExceptionMapper.java [new file with mode: 0644]
opendaylight/northbound/commons/src/main/java/org/opendaylight/controller/northbound/commons/NorthboundApplication.java
opendaylight/northbound/integrationtest/src/test/java/org/opendaylight/controller/northbound/integrationtest/NorthboundIT.java