This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push: new a3b9c81d0b Test requires decode handling of %2f to pass. a3b9c81d0b is described below commit a3b9c81d0b7148f406832fe89a450551d3779658 Author: Mark Thomas <ma...@apache.org> AuthorDate: Thu Jan 23 13:58:15 2025 +0000 Test requires decode handling of %2f to pass. --- test/org/apache/catalina/core/TestAsyncContextImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/org/apache/catalina/core/TestAsyncContextImpl.java b/test/org/apache/catalina/core/TestAsyncContextImpl.java index c22321e803..c4709b8afd 100644 --- a/test/org/apache/catalina/core/TestAsyncContextImpl.java +++ b/test/org/apache/catalina/core/TestAsyncContextImpl.java @@ -2677,11 +2677,12 @@ public class TestAsyncContextImpl extends TomcatBaseTest { // Setup Tomcat instance Tomcat tomcat = getTomcatInstance(); - tomcat.getConnector().setEncodedSolidusHandling(EncodedSolidusHandling.DECODE.getValue()); - // No file system docBase required Context ctx = getProgrammaticRootContext(); + tomcat.getConnector().setEncodedSolidusHandling(EncodedSolidusHandling.DECODE.getValue()); + ctx.setEncodedSolidusHandling(EncodedSolidusHandling.DECODE.getValue()); + EncodedDispatchServlet encodedDispatchServlet = new EncodedDispatchServlet(); Wrapper wrapper = Tomcat.addServlet(ctx, "encodedDispatchServlet", encodedDispatchServlet); wrapper.setAsyncSupported(true); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org