zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an...@apache.org
Subject [zookeeper] branch master updated: ZOOKEEPER-3590: Zookeeper is unable to set the zookeeper.sasl.client.canonicalize.hostname using system property
Date Fri, 22 Nov 2019 22:42:38 GMT
This is an automated email from the ASF dual-hosted git repository.

andor pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/zookeeper.git


The following commit(s) were added to refs/heads/master by this push:
     new 0b9d30f  ZOOKEEPER-3590: Zookeeper is unable to set the zookeeper.sasl.client.canonicalize.hostname
using system property
0b9d30f is described below

commit 0b9d30faedd27dec9d03220635467fdb23de6b8b
Author: aristotelhs <aristotelhs@lenses.io>
AuthorDate: Fri Nov 22 23:42:31 2019 +0100

    ZOOKEEPER-3590: Zookeeper is unable to set the zookeeper.sasl.client.canonicalize.hostname
using system property
    
    See https://issues.apache.org/jira/browse/ZOOKEEPER-3590
    
    This is a very small patch that gives sets the option after reading it from the system.getProperty().
    
    There should not be any side effects since this is mostly copy paste.
    
    Author: aristotelhs <aristotelhs@lenses.io>
    
    Reviewers: eolivelli@apache.org, andor@apache.org
    
    Closes #1124 from aristotelhs/ZOOKEEPER-3590
---
 .../src/main/java/org/apache/zookeeper/client/ZKClientConfig.java        | 1 +
 1 file changed, 1 insertion(+)

diff --git a/zookeeper-server/src/main/java/org/apache/zookeeper/client/ZKClientConfig.java
b/zookeeper-server/src/main/java/org/apache/zookeeper/client/ZKClientConfig.java
index 3012a35..10c6137 100644
--- a/zookeeper-server/src/main/java/org/apache/zookeeper/client/ZKClientConfig.java
+++ b/zookeeper-server/src/main/java/org/apache/zookeeper/client/ZKClientConfig.java
@@ -99,6 +99,7 @@ public class ZKClientConfig extends ZKConfig {
          * backward compatibility for client specific properties
          */
         setProperty(ZK_SASL_CLIENT_USERNAME, System.getProperty(ZK_SASL_CLIENT_USERNAME));
+        setProperty(ZK_SASL_CLIENT_CANONICALIZE_HOSTNAME, System.getProperty(ZK_SASL_CLIENT_CANONICALIZE_HOSTNAME));
         setProperty(LOGIN_CONTEXT_NAME_KEY, System.getProperty(LOGIN_CONTEXT_NAME_KEY));
         setProperty(ENABLE_CLIENT_SASL_KEY, System.getProperty(ENABLE_CLIENT_SASL_KEY));
         setProperty(ZOOKEEPER_SERVER_REALM, System.getProperty(ZOOKEEPER_SERVER_REALM));


Mime
View raw message