lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-9997) Enable configuring SolrHttpClientBuilder via java system property
Date Tue, 07 Feb 2017 18:27:41 GMT

    [ https://issues.apache.org/jira/browse/SOLR-9997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15856496#comment-15856496
] 

ASF subversion and git services commented on SOLR-9997:
-------------------------------------------------------

Commit e1a577645756addc8ed060024e4af7ccd15c2321 in lucene-solr's branch refs/heads/master
from markrmiller
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=e1a5776 ]

SOLR-9997: Enable configuring SolrHttpClientBuilder via java system property.


> Enable configuring SolrHttpClientBuilder via java system property
> -----------------------------------------------------------------
>
>                 Key: SOLR-9997
>                 URL: https://issues.apache.org/jira/browse/SOLR-9997
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>    Affects Versions: 6.3
>            Reporter: Hrishikesh Gadre
>            Assignee: Mark Miller
>
> Currently SolrHttpClientBuilder needs to be configured via invoking HttpClientUtil#setHttpClientBuilder(...)
API. On the other hand SolrCLI attempts to support configuring SolrHttpClientBuilder via Java
system property.  https://github.com/apache/lucene-solr/blob/9f58b6cd177f72b226c83adbb965cfe08d61d2fb/solr/core/src/java/org/apache/solr/util/SolrCLI.java#L265
> But after changes for SOLR-4509, this is no longer working. This is because we need to
configure HttpClientBuilderFactory which can provide appropriate SolrHttpClientBuilder instance
(e.g. Krb5HttpClientBuilder). I verified that SolrCLI does not work in a kerberos enabled
cluster. During the testing I also found that SolrCLI is hardcoded to use basic authentication,
> https://github.com/apache/lucene-solr/blob/9f58b6cd177f72b226c83adbb965cfe08d61d2fb/solr/core/src/java/org/apache/solr/util/SolrCLI.java#L156
> This jira is to add support for configuring HttpClientBuilderFactory as a java system
property so that SolrCLI as well as other Solr clients can also benefit this. Also we should
provide a HttpClientBuilderFactory which support configuring preemptive basic authentication
so that we can remove the hardcoded basic auth usage in SolrCLI (and enable it work with kerberos).




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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


Mime
View raw message