You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Shawn Heisey (Jira)" <ji...@apache.org> on 2023/03/25 05:45:00 UTC
[jira] [Comment Edited] (SOLR-16668) Use default Java SslContextFactory for HTTP2 when no system properties are given
[ https://issues.apache.org/jira/browse/SOLR-16668?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17704882#comment-17704882 ]
Shawn Heisey edited comment on SOLR-16668 at 3/25/23 5:44 AM:
--------------------------------------------------------------
With this specified in my project's build.gradle file (forcing all the jetty dependencies to a specific version) it works:
{code:none}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation group: 'org.apache.solr', name: 'solr-solrj', version: '9+'
implementation group: 'org.eclipse.jetty.http2', name: 'http2-client', version: '10.0.13'
implementation group: 'org.eclipse.jetty.http2', name: 'http2-common', version: '10.0.13'
implementation group: 'org.eclipse.jetty.http2', name: 'http2-hpack', version: '10.0.13'
implementation group: 'org.eclipse.jetty.http2', name: 'http2-http-client-transport', version: '10.0.13'
implementation group: 'org.eclipse.jetty', name: 'jetty-util', version: '10.0.13'
implementation group: 'org.eclipse.jetty', name: 'jetty-io', version: '10.0.13'
implementation group: 'org.eclipse.jetty', name: 'jetty-http', version: '10.0.13'
implementation group: 'org.eclipse.jetty', name: 'jetty-client', version: '10.0.13'
implementation group: 'org.eclipse.jetty', name: 'jetty-alpn-client', version: '10.0.13'
implementation group: 'org.eclipse.jetty', name: 'jetty-alpn-java-client', version: '10.0.13'
}
{code}
was (Author: elyograg):
With this specified in my project's build.gradle file (forcing all the jetty dependencies to a specific version) it works:
{color:#cc6c1d}dependencies{color} {
{color:#d9e8f7}implementation{color} {color:#17c6a3}'org.springframework.boot:spring-boot-starter'{color}
{color:#d9e8f7}testImplementation{color} {color:#17c6a3}'org.springframework.boot:spring-boot-starter-test'{color}
{color:#d9e8f7}implementation{color} {color:#d9e8f7}group{color}: {color:#17c6a3}'org.apache.solr'{color}, {color:#d9e8f7}name{color}: {color:#17c6a3}'solr-solrj'{color}, {color:#d9e8f7}version{color}: {color:#17c6a3}'9+'{color}
{color:#d9e8f7}implementation{color} {color:#d9e8f7}group{color}: {color:#17c6a3}'org.eclipse.jetty.http2'{color}, {color:#d9e8f7}name{color}: {color:#17c6a3}'http2-client'{color}, {color:#d9e8f7}version{color}: {color:#17c6a3}'10.0.13'{color}
{color:#d9e8f7}implementation{color} {color:#d9e8f7}group{color}: {color:#17c6a3}'org.eclipse.jetty.http2'{color}, {color:#d9e8f7}name{color}: {color:#17c6a3}'http2-common'{color}, {color:#d9e8f7}version{color}: {color:#17c6a3}'10.0.13'{color}
{color:#d9e8f7}implementation{color} {color:#d9e8f7}group{color}: {color:#17c6a3}'org.eclipse.jetty.http2'{color}, {color:#d9e8f7}name{color}: {color:#17c6a3}'http2-hpack'{color}, {color:#d9e8f7}version{color}: {color:#17c6a3}'10.0.13'{color}
{color:#d9e8f7}implementation{color} {color:#d9e8f7}group{color}: {color:#17c6a3}'org.eclipse.jetty.http2'{color}, {color:#d9e8f7}name{color}: {color:#17c6a3}'http2-http-client-transport'{color}, {color:#d9e8f7}version{color}: {color:#17c6a3}'10.0.13'{color}
{color:#d9e8f7}implementation{color} {color:#d9e8f7}group{color}: {color:#17c6a3}'org.eclipse.jetty'{color}, {color:#d9e8f7}name{color}: {color:#17c6a3}'jetty-util'{color}, {color:#d9e8f7}version{color}: {color:#17c6a3}'10.0.13'{color}
{color:#d9e8f7}implementation{color} {color:#d9e8f7}group{color}: {color:#17c6a3}'org.eclipse.jetty'{color}, {color:#d9e8f7}name{color}: {color:#17c6a3}'jetty-io'{color}, {color:#d9e8f7}version{color}: {color:#17c6a3}'10.0.13'{color}
{color:#d9e8f7}implementation{color} {color:#d9e8f7}group{color}: {color:#17c6a3}'org.eclipse.jetty'{color}, {color:#d9e8f7}name{color}: {color:#17c6a3}'jetty-http'{color}, {color:#d9e8f7}version{color}: {color:#17c6a3}'10.0.13'{color}
{color:#d9e8f7}implementation{color} {color:#d9e8f7}group{color}: {color:#17c6a3}'org.eclipse.jetty'{color}, {color:#d9e8f7}name{color}: {color:#17c6a3}'jetty-client'{color}, {color:#d9e8f7}version{color}: {color:#17c6a3}'10.0.13'{color}
{color:#d9e8f7}implementation{color} {color:#d9e8f7}group{color}: {color:#17c6a3}'org.eclipse.jetty'{color}, {color:#d9e8f7}name{color}: {color:#17c6a3}'jetty-alpn-client'{color}, {color:#d9e8f7}version{color}: {color:#17c6a3}'10.0.13'{color}
{color:#d9e8f7}implementation{color} {color:#d9e8f7}group{color}: {color:#17c6a3}'org.eclipse.jetty'{color}, {color:#d9e8f7}name{color}: {color:#17c6a3}'jetty-alpn-java-client'{color}, {color:#d9e8f7}version{color}: {color:#17c6a3}'10.0.13'{color}
}
> Use default Java SslContextFactory for HTTP2 when no system properties are given
> --------------------------------------------------------------------------------
>
> Key: SOLR-16668
> URL: https://issues.apache.org/jira/browse/SOLR-16668
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Components: SolrJ
> Affects Versions: 9.0
> Reporter: Houston Putman
> Assignee: Houston Putman
> Priority: Major
> Fix For: 9.2
>
> Attachments: image-2023-03-24-23-07-02-247.png
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Both the Apache and Jetty Http client libraries are capable of defaulting to the Java truststores when no system properties are provided. However, when cleaning up logging in SOLR-15936 the Http2SolrClient no longer used an SSLContextFactory when the system properties were not used. This is a regression for users that use the built-in truststore.
>
> Ideally we would be able to use both the default truststore and not give extra (useless) logging. If choosing one or the other, I think we should choose using the default truststore though.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org