Skip to content
Permalink
Browse files
AMBARI-25114. Log Search: SSL props needs to be set if only ambari-se…
…rver uses SSL.
  • Loading branch information
oleewere committed Jan 19, 2019
1 parent 1e939c4 commit 3293b96c6a6dab82d8434bde5b314a7519cf2e51
Showing 1 changed file with 3 additions and 0 deletions.
@@ -59,6 +59,9 @@ public class ExternalServerClient {
*/
public Object sendGETRequest(String loginUrl, Class<?> classObject, String username, String password) throws Exception {
if (localJerseyClient == null) {
if (sslConfigurer.isKeyStoreSpecified()) {
sslConfigurer.ensureStorePasswords();
}
localJerseyClient = ThreadLocal.withInitial(() -> sslConfigurer.isKeyStoreSpecified() ?
new JerseyClientBuilder().sslContext(sslConfigurer.getSSLContext()).build() :
JerseyClientBuilder.createClient());

0 comments on commit 3293b96

Please sign in to comment.