Skip to content

Commit

Permalink
Test requires decode handling of %2f to pass.
Browse files Browse the repository at this point in the history
  • Loading branch information
markt-asf committed Jan 23, 2025
1 parent 03e07d8 commit a3b9c81
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/org/apache/catalina/core/TestAsyncContextImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -2677,11 +2677,12 @@ public void testBug61185() throws Exception {
// 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);
Expand Down

0 comments on commit a3b9c81

Please sign in to comment.