Skip to content

Commit 2ba38e3

Browse files
aristotelhsnkalmar
authored andcommitted
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 <[email protected]> Reviewers: [email protected], [email protected] Closes apache#1124 from aristotelhs/ZOOKEEPER-3590 Change-Id: Ic45a2194cbed29754d57c5355148903e9838c13b
1 parent db3a8f8 commit 2ba38e3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

zookeeper-server/src/main/java/org/apache/zookeeper/client/ZKClientConfig.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ protected void handleBackwardCompatibility() {
9999
* backward compatibility for client specific properties
100100
*/
101101
setProperty(ZK_SASL_CLIENT_USERNAME, System.getProperty(ZK_SASL_CLIENT_USERNAME));
102+
setProperty(ZK_SASL_CLIENT_CANONICALIZE_HOSTNAME, System.getProperty(ZK_SASL_CLIENT_CANONICALIZE_HOSTNAME));
102103
setProperty(LOGIN_CONTEXT_NAME_KEY, System.getProperty(LOGIN_CONTEXT_NAME_KEY));
103104
setProperty(ENABLE_CLIENT_SASL_KEY, System.getProperty(ENABLE_CLIENT_SASL_KEY));
104105
setProperty(ZOOKEEPER_SERVER_REALM, System.getProperty(ZOOKEEPER_SERVER_REALM));

0 commit comments

Comments
 (0)