Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
402eb878
Commit
402eb878
authored
Feb 21, 2020
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upgrade to Tomcat 9.0.31
Closes gh-20277
parent
1909bac5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
TomcatWebServerFactoryCustomizerTests.java
...e/web/embedded/TomcatWebServerFactoryCustomizerTests.java
+3
-0
pom.xml
spring-boot-project/spring-boot-dependencies/pom.xml
+1
-1
SslConnectorCustomizerTests.java
...boot/web/embedded/tomcat/SslConnectorCustomizerTests.java
+3
-1
No files found.
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/embedded/TomcatWebServerFactoryCustomizerTests.java
View file @
402eb878
...
@@ -26,6 +26,7 @@ import org.apache.catalina.valves.AccessLogValve;
...
@@ -26,6 +26,7 @@ import org.apache.catalina.valves.AccessLogValve;
import
org.apache.catalina.valves.ErrorReportValve
;
import
org.apache.catalina.valves.ErrorReportValve
;
import
org.apache.catalina.valves.RemoteIpValve
;
import
org.apache.catalina.valves.RemoteIpValve
;
import
org.apache.coyote.AbstractProtocol
;
import
org.apache.coyote.AbstractProtocol
;
import
org.apache.coyote.ajp.AbstractAjpProtocol
;
import
org.apache.coyote.http11.AbstractHttp11Protocol
;
import
org.apache.coyote.http11.AbstractHttp11Protocol
;
import
org.junit.jupiter.api.BeforeEach
;
import
org.junit.jupiter.api.BeforeEach
;
import
org.junit.jupiter.api.Test
;
import
org.junit.jupiter.api.Test
;
...
@@ -464,6 +465,8 @@ class TomcatWebServerFactoryCustomizerTests {
...
@@ -464,6 +465,8 @@ class TomcatWebServerFactoryCustomizerTests {
void
ajpConnectorCanBeCustomized
()
{
void
ajpConnectorCanBeCustomized
()
{
TomcatServletWebServerFactory
factory
=
new
TomcatServletWebServerFactory
(
0
);
TomcatServletWebServerFactory
factory
=
new
TomcatServletWebServerFactory
(
0
);
factory
.
setProtocol
(
"AJP/1.3"
);
factory
.
setProtocol
(
"AJP/1.3"
);
factory
.
addConnectorCustomizers
(
(
connector
)
->
((
AbstractAjpProtocol
<?>)
connector
.
getProtocolHandler
()).
setSecretRequired
(
false
));
this
.
customizer
.
customize
(
factory
);
this
.
customizer
.
customize
(
factory
);
WebServer
server
=
factory
.
getWebServer
();
WebServer
server
=
factory
.
getWebServer
();
server
.
start
();
server
.
start
();
...
...
spring-boot-project/spring-boot-dependencies/pom.xml
View file @
402eb878
...
@@ -207,7 +207,7 @@
...
@@ -207,7 +207,7 @@
<thymeleaf-layout-dialect.version>
2.4.1
</thymeleaf-layout-dialect.version>
<thymeleaf-layout-dialect.version>
2.4.1
</thymeleaf-layout-dialect.version>
<thymeleaf-extras-data-attribute.version>
2.0.1
</thymeleaf-extras-data-attribute.version>
<thymeleaf-extras-data-attribute.version>
2.0.1
</thymeleaf-extras-data-attribute.version>
<thymeleaf-extras-java8time.version>
3.0.4.RELEASE
</thymeleaf-extras-java8time.version>
<thymeleaf-extras-java8time.version>
3.0.4.RELEASE
</thymeleaf-extras-java8time.version>
<tomcat.version>
9.0.3
0
</tomcat.version>
<tomcat.version>
9.0.3
1
</tomcat.version>
<unboundid-ldapsdk.version>
4.0.14
</unboundid-ldapsdk.version>
<unboundid-ldapsdk.version>
4.0.14
</unboundid-ldapsdk.version>
<undertow.version>
2.0.29.Final
</undertow.version>
<undertow.version>
2.0.29.Final
</undertow.version>
<webjars-hal-browser.version>
3325375
</webjars-hal-browser.version>
<webjars-hal-browser.version>
3325375
</webjars-hal-browser.version>
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/tomcat/SslConnectorCustomizerTests.java
View file @
402eb878
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -152,7 +152,9 @@ class SslConnectorCustomizerTests {
...
@@ -152,7 +152,9 @@ class SslConnectorCustomizerTests {
customizer
.
customize
(
connector
);
customizer
.
customize
(
connector
);
this
.
tomcat
.
start
();
this
.
tomcat
.
start
();
SSLHostConfig
sslHostConfig
=
connector
.
getProtocolHandler
().
findSslHostConfigs
()[
0
];
SSLHostConfig
sslHostConfig
=
connector
.
getProtocolHandler
().
findSslHostConfigs
()[
0
];
sslHostConfig
.
getCertificates
(
true
);
SSLHostConfig
sslHostConfigWithDefaults
=
new
SSLHostConfig
();
SSLHostConfig
sslHostConfigWithDefaults
=
new
SSLHostConfig
();
sslHostConfigWithDefaults
.
getCertificates
(
true
);
assertThat
(
sslHostConfig
.
getTruststoreFile
())
assertThat
(
sslHostConfig
.
getTruststoreFile
())
.
isEqualTo
(
SslStoreProviderUrlStreamHandlerFactory
.
TRUST_STORE_URL
);
.
isEqualTo
(
SslStoreProviderUrlStreamHandlerFactory
.
TRUST_STORE_URL
);
assertThat
(
sslHostConfig
.
getCertificateKeystoreFile
())
assertThat
(
sslHostConfig
.
getCertificateKeystoreFile
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment