[
https://issues.apache.org/jira/browse/SOLR-12848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Smiley resolved SOLR-12848.
---------------------------------
Fix Version/s: main (9.0)
Resolution: Fixed
Just a reminder here that eventually this Apache HttpClient based SolrJ will be
deprecated in favor of Jetty's client, although it isn't yet.
> 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
> Assignee: David Smiley
> Priority: Major
> Labels: httpclient
> Fix For: main (9.0)
>
> Attachments: SOLR-12848.patch, SOLR-12848.patch
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]