Rajkumar Singh created DRILL-3800:
-------------------------------------
Summary: Sqlline thows ArrayIndexOutOfBoundsException if password
is not provided with the connection string
Key: DRILL-3800
URL: https://issues.apache.org/jira/browse/DRILL-3800
Project: Apache Drill
Issue Type: Bug
Components: Client - CLI
Affects Versions: 1.1.0
Environment: Drill 1.1.0
Reporter: Rajkumar Singh
Assignee: Daniel Barclay (Drill)
when user try to connect to Drill using sqlline with the connection string and
if he does not specify the password it throws ArrayIndexOfBoundException.
{code}
[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)
{code}
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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)