summaryrefslogtreecommitdiffstats
path: root/mso-api-handlers
diff options
context:
space:
mode:
authorBoslet, Cory <cory.boslet@att.com>2020-06-19 13:57:48 -0400
committerBenjamin, Max (mb388a) <mb388a@att.com>2020-06-19 13:57:49 -0400
commit8649bcb5c0760d35732bdb61de4f1569e0487755 (patch)
tree6c5d863625c203b365d37b6b6f5fbcead37dfec5 /mso-api-handlers
parent0abec191b0645a80c9bc5df4af3423a9377b83db (diff)
Ignore unknown properties in the camunda response
Ignore unknown properties in the camunda response so doesnt fail on timestamp. Updated unit test to account for changes to object mapper. Issue-ID: SO-2990 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I15c064f7e93307f921c07d4aaa42122a5f93c380
Diffstat (limited to 'mso-api-handlers')
-rw-r--r--mso-api-handlers/mso-api-handler-common/src/main/java/org/onap/so/apihandler/common/ResponseHandler.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/mso-api-handlers/mso-api-handler-common/src/main/java/org/onap/so/apihandler/common/ResponseHandler.java b/mso-api-handlers/mso-api-handler-common/src/main/java/org/onap/so/apihandler/common/ResponseHandler.java
index af1258e963..65e8b438ad 100644
--- a/mso-api-handlers/mso-api-handler-common/src/main/java/org/onap/so/apihandler/common/ResponseHandler.java
+++ b/mso-api-handlers/mso-api-handler-common/src/main/java/org/onap/so/apihandler/common/ResponseHandler.java
@@ -32,6 +32,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
+import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
@@ -43,6 +44,7 @@ public class ResponseHandler {
String responseBody = camundaResponse.getBody();
CamundaResponse response = null;
ObjectMapper mapper = new ObjectMapper();
+ mapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
try {
response = mapper.readValue(responseBody, CamundaResponse.class);
} catch (IOException | NullPointerException e) {