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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment