From bfe11faef04dd771b7a6a8d54aa55107e75e2808 Mon Sep 17 00:00:00 2001 From: Andre Kurait Date: Wed, 19 Jun 2024 12:12:11 -0500 Subject: [PATCH] Fix Jackson deserialization for 7.17 snapshot repo data Signed-off-by: Andre Kurait --- .../java/com/rfs/version_es_7_10/SnapshotRepoData_ES_7_10.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RFS/src/main/java/com/rfs/version_es_7_10/SnapshotRepoData_ES_7_10.java b/RFS/src/main/java/com/rfs/version_es_7_10/SnapshotRepoData_ES_7_10.java index d0d476e3c..e7ae145d8 100644 --- a/RFS/src/main/java/com/rfs/version_es_7_10/SnapshotRepoData_ES_7_10.java +++ b/RFS/src/main/java/com/rfs/version_es_7_10/SnapshotRepoData_ES_7_10.java @@ -1,6 +1,7 @@ package com.rfs.version_es_7_10; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import java.io.File; @@ -16,6 +17,7 @@ public class SnapshotRepoData_ES_7_10 { public static SnapshotRepoData_ES_7_10 fromRepoFile(Path filePath) { ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); try { SnapshotRepoData_ES_7_10 data = mapper.readValue(new File(filePath.toString()), SnapshotRepoData_ES_7_10.class); data.filePath = filePath;