You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JedisURIHelper.getPassword does return null when there is only a username and no password in the URI.
Actual behavior
JedisURIHelper.getPassword does throw a exception when there is only a username and no password in the URI.
java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
at redis.clients.jedis.util.JedisURIHelper.getPassword(JedisURIHelper.java:36)
this is about handling wrong user Input/Configuration (like you stated if there is a username there must be a password).
failing the AUTH is totally expected, but having a stack trace with ArrayIndexOutOfBoundsException is hard to understand.
Expected behavior
JedisURIHelper.getPassword does return
null
when there is only a username and no password in the URI.Actual behavior
JedisURIHelper.getPassword does throw a exception when there is only a username and no password in the URI.
Steps to reproduce:
Redis / Jedis Configuration
Jedis version:
Redis version:
Java version:
The text was updated successfully, but these errors were encountered: