You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Mathieu Marie (Jira)" <ji...@apache.org> on 2021/03/12 09:10:00 UTC
[jira] [Commented] (SOLR-12848) SolrJ does not use HTTP proxy
anymore
[ https://issues.apache.org/jira/browse/SOLR-12848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17300165#comment-17300165 ]
Mathieu Marie commented on SOLR-12848:
--------------------------------------
I am trying to use a proxy to intercept SolrJ<->Solr communications. It looks like I am hitting that issue too.
Wondering if this one liner patch is still valid, and could be merged. This seems like a valid use case to honor the jvm flags.
> SolrJ does not use HTTP proxy anymore
> -------------------------------------
>
> Key: SOLR-12848
> URL: https://issues.apache.org/jira/browse/SOLR-12848
> Project: Solr
> Issue Type: Bug
> Components: SolrJ
> Affects Versions: 7.5
> Reporter: Andreas Hubold
> Priority: Major
> Labels: httpclient
> Attachments: SOLR-12848.patch, SOLR-12848.patch
>
>
> SolrJ's HttpSolrClient ignores the HTTP proxy configuration from system properties http.proxyHost and http.proxyPort. This used to work with Solr 6.6.5.
> Solr 6.6.5 used org.apache.http.impl.client.SystemDefaultHttpClient under the hood, which took system properties for HTTP proxy config into account. The deprecated SystemDefaultHttpClient class was replaced as part of SOLR-4509. SolrJ now uses org.apache.http.impl.client.HttpClientBuilder#create to create an HttpClient, but it does not call #useSystemProperties on the builder. Because of that, the proxy configuration from system properties is ignored.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)