Skip to content

Commit

Permalink
Fix tests broken by introduction of allowMultipleLeadingForwardSlashI…
Browse files Browse the repository at this point in the history
…nPath

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc8.5.x/trunk@1830379 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
markt-asf committed Apr 27, 2018
1 parent e00812b commit 462c32b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/org/apache/catalina/connector/TestRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -827,6 +827,7 @@ private void doBug56501(String deployPath, String requestPath, String expected)

// No file system docBase required
Context ctx = tomcat.addContext(deployPath, null);
ctx.setAllowMultipleLeadingForwardSlashInPath(true);

Tomcat.addServlet(ctx, "servlet", new Bug56501Servlet());
ctx.addServletMappingDecoded("/*", "servlet");
Expand Down
1 change: 1 addition & 0 deletions test/org/apache/catalina/core/TestAsyncContextImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -2125,6 +2125,7 @@ private void prepareApplicationWithGenericServlet(String contextPath)

// No file system docBase required
Context ctx = tomcat.addContext(contextPath, null);
ctx.setAllowMultipleLeadingForwardSlashInPath(true);

DispatchingGenericServlet dispatch = new DispatchingGenericServlet();
Wrapper wrapper = Tomcat.addServlet(ctx, "dispatch", dispatch);
Expand Down

0 comments on commit 462c32b

Please sign in to comment.