[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-2055?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Steve R updated ZOOKEEPER-2055:
-------------------------------
    Attachment: ZOOKEEPER-2055.patch

Kindly asking for a code review of the attached patch.

> 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
>         Attachments: ZOOKEEPER-2055.patch
>
>
> 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