You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by "Pieper, Stefan" <St...@coremedia.com.INVALID> on 2023/06/29 09:11:30 UTC

SolrJ 9.2.1: How to Use HTTP Proxy

Hi all,

While doing an upgrade from Solr 8.11.2 to 9.2.1 I bumped into an issue with proxy configuration for SolrJ and though I dug deep into the code I'd like to make sure I didn't miss something obvious.

It's about defining a proxy host for SolrJ requests. It seems like HTTP/2-based Solr clients (Http2SolrClient etc) cannot be configured to use a proxy. For HTTP/1 clients this was recently solved via SOLR-12848. But environment variables "http.proxyHost" etc are not applied by Jetty clients which are used for HTTP/2 communication. Configuration of the Jetty client through org.eclipse.jetty.client.HttpClient#getProxyConfiguration() is not possible, either, since Http2SolrClient#getHttpClient() is package-protected.

Do you know of any way around this? Or is it a gap in the Solr API (for which I'd create a Jira ticket then)?

Thanks!
Stefan


Re: SolrJ 9.2.1: How to Use HTTP Proxy

Posted by "Pieper, Stefan" <St...@coremedia.com.INVALID>.
Hi Kevin,

Right, just two days before my own ticket (and five days after I last checked) this other ticket has been created. Thanks a lot for spotting the duplication! Looking forward for a fix.

Best,
Stefan

From: Kevin Risden <kr...@apache.org>
Date: Thursday, 6. July 2023 at 15:23
To: Stefan.Pieper@coremedia.com.invalid <St...@coremedia.com.invalid>
Cc: users@solr.apache.org <us...@solr.apache.org>
Subject: Re: SolrJ 9.2.1: How to Use HTTP Proxy
[Sie erhalten nicht häufig E-Mails von krisden@apache.org. Weitere Informationen, warum dies wichtig ist, finden Sie unter https://aka.ms/LearnAboutSenderIdentification ]

I don't see a way around this, but I saw
https://issues.apache.org/jira/browse/SOLR-16859 was created.

Kevin Risden


On Thu, Jun 29, 2023 at 5:13 AM Pieper, Stefan
<St...@coremedia.com.invalid> wrote:

> Hi all,
>
> While doing an upgrade from Solr 8.11.2 to 9.2.1 I bumped into an issue
> with proxy configuration for SolrJ and though I dug deep into the code I'd
> like to make sure I didn't miss something obvious.
>
> It's about defining a proxy host for SolrJ requests. It seems like
> HTTP/2-based Solr clients (Http2SolrClient etc) cannot be configured to use
> a proxy. For HTTP/1 clients this was recently solved via SOLR-12848. But
> environment variables "http.proxyHost" etc are not applied by Jetty clients
> which are used for HTTP/2 communication. Configuration of the Jetty client
> through org.eclipse.jetty.client.HttpClient#getProxyConfiguration() is not
> possible, either, since Http2SolrClient#getHttpClient() is
> package-protected.
>
> Do you know of any way around this? Or is it a gap in the Solr API (for
> which I'd create a Jira ticket then)?
>
> Thanks!
> Stefan
>
>

Re: SolrJ 9.2.1: How to Use HTTP Proxy

Posted by Kevin Risden <kr...@apache.org>.
I don't see a way around this, but I saw
https://issues.apache.org/jira/browse/SOLR-16859 was created.

Kevin Risden


On Thu, Jun 29, 2023 at 5:13 AM Pieper, Stefan
<St...@coremedia.com.invalid> wrote:

> Hi all,
>
> While doing an upgrade from Solr 8.11.2 to 9.2.1 I bumped into an issue
> with proxy configuration for SolrJ and though I dug deep into the code I'd
> like to make sure I didn't miss something obvious.
>
> It's about defining a proxy host for SolrJ requests. It seems like
> HTTP/2-based Solr clients (Http2SolrClient etc) cannot be configured to use
> a proxy. For HTTP/1 clients this was recently solved via SOLR-12848. But
> environment variables "http.proxyHost" etc are not applied by Jetty clients
> which are used for HTTP/2 communication. Configuration of the Jetty client
> through org.eclipse.jetty.client.HttpClient#getProxyConfiguration() is not
> possible, either, since Http2SolrClient#getHttpClient() is
> package-protected.
>
> Do you know of any way around this? Or is it a gap in the Solr API (for
> which I'd create a Jira ticket then)?
>
> Thanks!
> Stefan
>
>