From 03125debd5accf5005413519ebdda5e6071e4b8b Mon Sep 17 00:00:00 2001 From: suomiy Date: Tue, 19 Feb 2019 16:34:31 +0100 Subject: [PATCH 1/2] optimize Error handling - statistics fetching NPE due to hugepages is fixed in version 4.2.2 so it is not necessary to retry modified requests anymore --- .../properties/property/version/support/VersionSupport.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/moVirt/src/main/java/org/ovirt/mobile/movirt/auth/properties/property/version/support/VersionSupport.java b/moVirt/src/main/java/org/ovirt/mobile/movirt/auth/properties/property/version/support/VersionSupport.java index 02336b4f..a4e3e7b0 100644 --- a/moVirt/src/main/java/org/ovirt/mobile/movirt/auth/properties/property/version/support/VersionSupport.java +++ b/moVirt/src/main/java/org/ovirt/mobile/movirt/auth/properties/property/version/support/VersionSupport.java @@ -16,9 +16,7 @@ public enum VersionSupport { FOLLOW_LINKS(new Version(4, 2, 0), Version.MAX_VALUE), - // NPE on the engine: affects hosts - // FIXME: change supportedUntil after this bug is resolved https://bugzilla.redhat.com/show_bug.cgi?id=1547050 - FOLLOW_BUG(new Version(4, 2, 0), Version.MAX_VALUE); + FOLLOW_BUG(new Version(4, 2, 0), new Version(4, 2, 2)); private Version supportedFrom; private Version supportedUntil; From 747e047db56e642e1562b4fcaa61febaf2e46d5b Mon Sep 17 00:00:00 2001 From: suomiy Date: Tue, 19 Feb 2019 18:05:03 +0100 Subject: [PATCH 2/2] fix statistics parsing --- .../java/org/ovirt/mobile/movirt/rest/dto/common/Statistic.java | 1 + 1 file changed, 1 insertion(+) diff --git a/moVirt/src/main/java/org/ovirt/mobile/movirt/rest/dto/common/Statistic.java b/moVirt/src/main/java/org/ovirt/mobile/movirt/rest/dto/common/Statistic.java index 902c3054..526885bb 100644 --- a/moVirt/src/main/java/org/ovirt/mobile/movirt/rest/dto/common/Statistic.java +++ b/moVirt/src/main/java/org/ovirt/mobile/movirt/rest/dto/common/Statistic.java @@ -14,6 +14,7 @@ public static class Values { public List value; } + @JsonIgnoreProperties(ignoreUnknown = true) public static class Value { public String datum; }