zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ZOOKEEPER-2767) Correct the exception messages in X509Util if truststore location or password is not configured
Date Fri, 26 May 2017 23:37:04 GMT

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-2767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16027023#comment-16027023
] 

Hudson commented on ZOOKEEPER-2767:
-----------------------------------

FAILURE: Integrated in Jenkins build ZooKeeper-trunk #3403 (See [https://builds.apache.org/job/ZooKeeper-trunk/3403/])
ZOOKEEPER-2767: Corrected keystore related messages to truststore mess… (hanm: rev 5bfcc13fd6820c212d67c39fede4dc4a50d84d83)
* (edit) src/java/main/org/apache/zookeeper/common/X509Util.java


> Correct the exception messages in X509Util if truststore location or password is not
configured
> -----------------------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-2767
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2767
>             Project: ZooKeeper
>          Issue Type: Improvement
>          Components: java client, server
>    Affects Versions: 3.5.4, 3.6.0
>            Reporter: Abhishek Kumar
>            Priority: Trivial
>             Fix For: 3.5.4, 3.6.0
>
>
> In org.apache.zookeeper.common.X509Util.org.apache.zookeeper.common.X509Util.createSSLContext
exception messages contains keystore related messages instead of truststore messages for truststore
location/password checks:
> {noformat}
> if (trustStoreLocationProp == null && trustStorePasswordProp == null) {
>             LOG.warn("keystore not specified for client connection");
>         } else {
>             if (trustStoreLocationProp == null) {
>                 throw new SSLContextException("keystore location not specified for client
connection");
>             }
>             if (trustStorePasswordProp == null) {
>                 throw new SSLContextException("keystore password not specified for client
connection");
>             }
>             try {
>                 trustManagers = new TrustManager[]{
>                         createTrustManager(trustStoreLocationProp, trustStorePasswordProp)};
>             } catch (TrustManagerException e) {
>                 throw new SSLContextException("Failed to create KeyManager", e);
>             }
>         }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message