You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Kevin Risden (JIRA)" <ji...@apache.org> on 2015/10/21 16:33:27 UTC

[jira] [Updated] (SOLR-8179) SQL JDBC - DriverImpl loadParams doesn't support keys with no values in the connection string

     [ https://issues.apache.org/jira/browse/SOLR-8179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Risden updated SOLR-8179:
-------------------------------
    Attachment: SOLR-8179.patch

This patch addresses a few issues with DriverImpl to remove the manual processing of the connection string. There is a new test file that tests for some exception cases.

> SQL JDBC - DriverImpl loadParams doesn't support keys with no values in the connection string
> ---------------------------------------------------------------------------------------------
>
>                 Key: SOLR-8179
>                 URL: https://issues.apache.org/jira/browse/SOLR-8179
>             Project: Solr
>          Issue Type: Bug
>          Components: SolrJ
>    Affects Versions: Trunk
>            Reporter: Kevin Risden
>         Attachments: SOLR-8179.patch
>
>
> DBVisualizer and SquirrelSQL when trying to use JDBC with no username/password and the JDBC driver causes an exception.
> {code}
> DriverManager.getConnection("jdbc:solr://" + zkHost + "?collection=collection1&username=&password=");
> {code}
> {code}
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
> 	at org.apache.solr.client.solrj.io.sql.DriverImpl.loadParams(DriverImpl.java:141)
> 	... 46 more
> {code}
> The loadParams method doesn't support keys with no values.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org