Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-3800

Sqlline thows ArrayIndexOutOfBoundsException if password is not provided with the connection string

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.1.0
    • Future
    • Client - CLI
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Rajkumar Singh Rajkumar Singh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: