From a25a4204688642793c9f87797cc7744fc949e42a Mon Sep 17 00:00:00 2001 From: J-N-K Date: Mon, 24 May 2021 10:59:21 +0200 Subject: [PATCH] [tr064] fix ignored configuration update (#111) Signed-off-by: Jan N. Klug --- .../binding/tr064/internal/Tr064RootHandler.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bundles/org.smarthomej.binding.tr064/src/main/java/org/smarthomej/binding/tr064/internal/Tr064RootHandler.java b/bundles/org.smarthomej.binding.tr064/src/main/java/org/smarthomej/binding/tr064/internal/Tr064RootHandler.java index 136cd8aa47..9c8a841992 100644 --- a/bundles/org.smarthomej.binding.tr064/src/main/java/org/smarthomej/binding/tr064/internal/Tr064RootHandler.java +++ b/bundles/org.smarthomej.binding.tr064/src/main/java/org/smarthomej/binding/tr064/internal/Tr064RootHandler.java @@ -204,6 +204,7 @@ public void dispose() { removeConnectScheduler(); uninstallPolling(); stateCache.clear(); + scpdUtil = null; super.dispose(); } @@ -257,9 +258,10 @@ private boolean establishSecureConnectionAndUpdateProperties() { } // clear auth cache and force re-auth - httpClient.getAuthenticationStore().clearAuthenticationResults(); - AuthenticationStore auth = httpClient.getAuthenticationStore(); - auth.addAuthentication(new DigestAuthentication(new URI(endpointBaseURL), Authentication.ANY_REALM, + AuthenticationStore authStore = httpClient.getAuthenticationStore(); + authStore.clearAuthentications(); + authStore.clearAuthenticationResults(); + authStore.addAuthentication(new DigestAuthentication(new URI(endpointBaseURL), Authentication.ANY_REALM, config.user, config.password)); // check & update properties