Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-8179

SQL JDBC - DriverImpl loadParams doesn't support keys with no values in the connection string

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 6.0
    • None
    • SolrJ
    • None

    Description

      DBVisualizer and SquirrelSQL when trying to use JDBC with no username/password and the JDBC driver causes an exception.

      DriverManager.getConnection("jdbc:solr://" + zkHost + "?collection=collection1&username=&password=");
      
      Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
      	at org.apache.solr.client.solrj.io.sql.DriverImpl.loadParams(DriverImpl.java:141)
      	... 46 more
      

      The loadParams method doesn't support keys with no values.

      Attachments

        1. SOLR-8179.patch
          14 kB
          Kevin Risden
        2. SOLR-8179.patch
          15 kB
          Kevin Risden

        Issue Links

          Activity

            People

              jbernste Joel Bernstein
              krisden Kevin Risden
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: