Skip to content

Add a Tomcat 11 smoke test #42730

Closed
Closed
@sephiroth-j

Description

@sephiroth-j

Tomcat 11.0.0 was released last week and it would be nice if Spring Boot 3.4 would support the new version. This requires at least changing TomcatWebServerFactoryCustomizer.customizeRejectIllegalHeader as it uses a previously deprecated method setRejectIllegalHeader which was removed with Tomcat 11.0.

Catching a NoSuchMethodError would be sufficient and is something that is already done in customizeRemoteIpValve.

try {
valve.setHostHeader(remoteIpProperties.getHostHeader());
}
catch (NoSuchMethodError ex) {
// Avoid failure with war deployments to Tomcat 8.5 before 8.5.44 and
// Tomcat 9 before 9.0.23
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions