You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Shawn Heisey (JIRA)" <ji...@apache.org> on 2018/10/29 13:34:12 UTC

[jira] [Comment Edited] (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=16667204#comment-16667204 ] 

Shawn Heisey edited comment on SOLR-12848 at 10/29/18 1:33 PM:
---------------------------------------------------------------

bq. not sure how to install it now, if you can give me a hint

You can't install a patch on a binary download of Solr.  You have to obtain the source code for the specific version you want to patch, apply the patch, and then build Solr.

https://wiki.apache.org/solr/HowToContribute

The wiki page linked above describes how to get the source code and figure out which branch you want.  It also has some information about working with patches, although it doesn't have any info on applying them with git, which I prefer to do when possible.  The basic method for that is to change directory to the root of the source code and then type "git apply /path/to/XXXXX.patch".


was (Author: elyograg):
bq. not sure how to install it now, if you can give me a hint

You can't install a patch on a binary download of Solr.  You have to obtain the source code for the specific version you want to patch, apply the patch, and then build Solr.

This wiki page describes how to get the source code and figure out which branch you want.  It also has some information about working with patches, although it doesn't have any info on applying them with git, which I prefer to do when possible.  The basic method for that is to change directory to the root of the source code and then type "git apply /path/to/XXXXX.patch".

> SolrJ does not use HTTP proxy anymore
> -------------------------------------
>
>                 Key: SOLR-12848
>                 URL: https://issues.apache.org/jira/browse/SOLR-12848
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          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
(v7.6.3#76005)

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