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

Steve R commented on ZOOKEEPER-2055:
------------------------------------

-1 tests included:
There aren't any unit tests for ZooKeeperSaslClient and creating new tests for 
this change would be long, difficult, and require lots of other refactoring to 
make it easily testable.

-1 release audit:
[rat:report]  !????? 
/home/jenkins/jenkins-slave/workspace/PreCommit-ZOOKEEPER-Build/trunk/build/zookeeper-3.6.0-SNAPSHOT/contrib/rest/conf/keys/rest.cer
[rat:report]  !????? 
/home/jenkins/jenkins-slave/workspace/PreCommit-ZOOKEEPER-Build/trunk/build/zookeeper-3.6.0-SNAPSHOT/src/contrib/rest/conf/keys/rest.cer
Lines that start with ????? in the release audit report indicate files that do 
not have an Apache license header.

That doesn't make any sense to me and I'm not sure how I could have caused that

-1 core tests:
Error Message

Forked Java VM exited abnormally. Please note the time in the report does not 
reflect the time until the VM exit.

I'm not sure how I could have caused that and when I ran the tests locally 
everything passed.

> 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