Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.1.0
-
None
-
Drill 1.1.0
Description
when user try to connect to Drill using sqlline with the connection string and if he does not specify the password it throws ArrayIndexOfBoundException.
[root@node3 ~]# /opt/mapr/drill/drill-1.1.0/bin/sqlline -u "jdbc:drill:zk=" -n mapr -p Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 9 at sqlline.SqlLine.initArgs(SqlLine.java:499) at sqlline.SqlLine.begin(SqlLine.java:587) at sqlline.SqlLine.start(SqlLine.java:366) at sqlline.SqlLine.main(SqlLine.java:259)
The problem seems to with sqlline class while parsing in the input args it increases the args array without checking the args length.user must be provided some message to suggest a vaild connection string.