Skip to content

Commit 09fa825

Browse files
committed
Upgrade to Tomcat 9.0.31
Closes gh-20167
1 parent db9f273 commit 09fa825

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/embedded/TomcatWebServerFactoryCustomizerTests.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import org.apache.catalina.valves.ErrorReportValve;
2727
import org.apache.catalina.valves.RemoteIpValve;
2828
import org.apache.coyote.AbstractProtocol;
29+
import org.apache.coyote.ajp.AbstractAjpProtocol;
2930
import org.apache.coyote.http11.AbstractHttp11Protocol;
3031
import org.junit.jupiter.api.BeforeEach;
3132
import org.junit.jupiter.api.Test;
@@ -490,6 +491,8 @@ void accessLogwithIpv6CanonicalSet() {
490491
void ajpConnectorCanBeCustomized() {
491492
TomcatServletWebServerFactory factory = new TomcatServletWebServerFactory(0);
492493
factory.setProtocol("AJP/1.3");
494+
factory.addConnectorCustomizers(
495+
(connector) -> ((AbstractAjpProtocol<?>) connector.getProtocolHandler()).setSecretRequired(false));
493496
this.customizer.customize(factory);
494497
WebServer server = factory.getWebServer();
495498
server.start();

spring-boot-project/spring-boot-dependencies/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1765,7 +1765,7 @@ bom {
17651765
]
17661766
}
17671767
}
1768-
library("Tomcat", "9.0.30") {
1768+
library("Tomcat", "9.0.31") {
17691769
group("org.apache.tomcat") {
17701770
modules = [
17711771
"tomcat-annotations-api",

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/tomcat/SslConnectorCustomizerTests.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -152,7 +152,9 @@ void customizeWhenSslStoreProviderProvidesOnlyTrustStoreShouldUseDefaultKeystore
152152
customizer.customize(connector);
153153
this.tomcat.start();
154154
SSLHostConfig sslHostConfig = connector.getProtocolHandler().findSslHostConfigs()[0];
155+
sslHostConfig.getCertificates(true);
155156
SSLHostConfig sslHostConfigWithDefaults = new SSLHostConfig();
157+
sslHostConfigWithDefaults.getCertificates(true);
156158
assertThat(sslHostConfig.getTruststoreFile())
157159
.isEqualTo(SslStoreProviderUrlStreamHandlerFactory.TRUST_STORE_URL);
158160
assertThat(sslHostConfig.getCertificateKeystoreFile())

0 commit comments

Comments
 (0)