Skip to content

Commit

Permalink
[tr064] fix ignored configuration update (#111)
Browse files Browse the repository at this point in the history
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
  • Loading branch information
J-N-K authored May 24, 2021
1 parent a1aa5ac commit a25a420
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ public void dispose() {
removeConnectScheduler();
uninstallPolling();
stateCache.clear();
scpdUtil = null;

super.dispose();
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a25a420

Please sign in to comment.