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

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

Commit df3d8975e0c503a0cf3232c20d84782df8fb3374 in solr's branch 
refs/heads/main from David Smiley
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=df3d897 ]

SOLR-12848: SolrJ: HTTP proxy configuration via system properties (#287)

SolrJ and the server can now recognize some standard Java system properties 
like for an HTTP proxy.  This is only for the Apache HttpClient based SolrJ 
communication, not Jetty.

> 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
>         Attachments: SOLR-12848.patch, SOLR-12848.patch
>
>          Time Spent: 10m
>  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]

Reply via email to