Steve R created ZOOKEEPER-2055:
----------------------------------

             Summary: Don't throw ArrayIndexOutOfBoundsException when SASL 
username/password isn't specified
                 Key: ZOOKEEPER-2055
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2055
             Project: ZooKeeper
          Issue Type: Bug
            Reporter: Steve R
            Priority: Minor


When using SASLAuthenticationProvider and the jaas.conf file doesn't have a 
username and/or password for either the server or client configuration, when 
the client tries to connect via zkCli, an ArrayIndexOutOfBoundsException is 
thrown

Example conf file:
Server {
       org.apache.zookeeper.server.auth.DigestLoginModule required;
};
Client {
       org.apache.zookeeper.server.auth.DigestLoginModule required
       username="bob"
       password="bob123";
};

Shows the resuting information:
INFO [main-SendThread(127.0.0.1:2181)] Client will use DIGEST-MD5 as SASL 
mechanism.
ERROR[main-SendThread(127.0.0.1:2181)] Exception while trying to create SASL 
client: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to