Do not modify AliasChecks list from Jetty WebAppContext

Closes gh-29555
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2022-01-25 13:22:58 +11:00 committed by Brian Clozel
parent 000cbfa2d9
commit f1bbce1aac

View File

@ -218,7 +218,7 @@ public class JettyServletWebServerFactory extends AbstractServletWebServerFactor
*/
protected final void configureWebAppContext(WebAppContext context, ServletContextInitializer... initializers) {
Assert.notNull(context, "Context must not be null");
context.getAliasChecks().clear();
context.clearAliasChecks();
context.setTempDirectory(getTempDirectory());
if (this.resourceLoader != null) {
context.setClassLoader(this.resourceLoader.getClassLoader());