From 16150302cd45aa283b08923bb35148553eb3ff65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20H=C3=BCbner?= Date: Tue, 30 Nov 2021 13:51:05 +0100 Subject: [PATCH 1/2] React on all HiroHttpExceptions with requestToken() --- .../client/connection/token/PasswordAuthTokenAPIHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/co/arago/hiro/client/connection/token/PasswordAuthTokenAPIHandler.java b/src/main/java/co/arago/hiro/client/connection/token/PasswordAuthTokenAPIHandler.java index 7c13509..83bee86 100644 --- a/src/main/java/co/arago/hiro/client/connection/token/PasswordAuthTokenAPIHandler.java +++ b/src/main/java/co/arago/hiro/client/connection/token/PasswordAuthTokenAPIHandler.java @@ -460,7 +460,7 @@ public synchronized void refreshToken() throws IOException, InterruptedException maxRetries); this.tokenInfo.parse(tokenResponse); - } catch (TokenUnauthorizedException e) { + } catch (HiroHttpException e) { log.warn("Error using refresh token: {}", e.getMessage()); requestToken(); } From c57096245f8b132f86884d223d355a69b5786d0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20H=C3=BCbner?= Date: Wed, 1 Dec 2021 11:28:40 +0100 Subject: [PATCH 2/2] Version 0.2.2 --- VERSION | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 0c62199..ee1372d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.2.1 +0.2.2 diff --git a/pom.xml b/pom.xml index 3102808..12a0f5c 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ co.arago.hiro.client hiro-client-java - 0.2.1 + 0.2.2 arago GmbH