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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.0
    • Fix Version/s: None
    • Component/s: SolrJ
    • Labels:
      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

              • Assignee:
                joel.bernstein Joel Bernstein
                Reporter:
                risdenk Kevin Risden
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: