Ticket created: https://issues.apache.org/jira/browse/SOLR-16737
Thank you for supporting, Andrei Minin | Principal Developer Intellective ami...@intellective.com www.intellective.com<http://www.intellective.com/> Follow us on LinkedIn<https://www.linkedin.com/company/intellectiv/> | Twitter<https://twitter.com/intellectiv> | Facebook<https://www.facebook.com/intellectiveglobal> ________________________________ From: Tomás Fernández Löbbe <tomasflo...@gmail.com> Sent: Tuesday, April 4, 2023 22:22 To: users@solr.apache.org <users@solr.apache.org> Subject: Re: SOLR 9.2.0 cluster basic authentication with http2 solr client Yes, good catch Andrei! Mind filing a Jira issue? On Tue, Apr 4, 2023 at 10:46 AM Shawn Heisey <apa...@elyograg.org> wrote: > On 4/4/23 00:11, Andrei Minin wrote: > > protected SolrClient getSolrClient(String baseUrl) { > > return new > Http2SolrClient.Builder(baseUrl).withHttpClient(httpClient).build(); > > } > > That's not good. This patch would fix it: > > https://paste.elyograg.org/view/456026f5 > > A similar patch would be needed for HttpClusterStateProvider. > > Until we can get this done, can you try building the client using the ZK > cluster info instead of URLs? I suspect that might work, and if it > doesn't, we'll need to fix that too. > > For your other issue you mentioned ... if you were trying to use > Http2SolrClient to talk to a Solr URL using https and getting an > exception about a missing SSL context, that problem has been fixed in > SolrJ 9.2.0. There is a workaround for earlier 9.x releases. > > Thanks, > Shawn >