From fa6a1463d079f494b36f12feb0c7600d9d2ee7d9 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Wed, 16 Feb 2022 16:49:03 +0100 Subject: [PATCH] Polish --- .../java/smoketest/jetty/jsp/SampleWebJspApplicationTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-jetty-jsp/src/test/java/smoketest/jetty/jsp/SampleWebJspApplicationTests.java b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-jetty-jsp/src/test/java/smoketest/jetty/jsp/SampleWebJspApplicationTests.java index 359b8ec26c..48fc7a2a03 100644 --- a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-jetty-jsp/src/test/java/smoketest/jetty/jsp/SampleWebJspApplicationTests.java +++ b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-jetty-jsp/src/test/java/smoketest/jetty/jsp/SampleWebJspApplicationTests.java @@ -16,6 +16,7 @@ package smoketest.jetty.jsp; +import org.eclipse.jetty.server.AllowedResourceAliasChecker; import org.eclipse.jetty.server.handler.ContextHandler; import org.junit.jupiter.api.Test; @@ -59,7 +60,7 @@ class SampleWebJspApplicationTests { JettyServerCustomizer jettyServerCustomizer() { return (server) -> { ContextHandler handler = (ContextHandler) server.getHandler(); - handler.addAliasCheck((path, resource) -> true); + handler.addAliasCheck(new AllowedResourceAliasChecker(handler)); }; }