This is an automated email from the ASF dual-hosted git repository.

markt-asf pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/11.0.x by this push:
     new 8d3ceae954 Expand test case to confirm bug report is invalid
8d3ceae954 is described below

commit 8d3ceae954b1e07d2cdc94fbdf21f3c577d3327d
Author: Mark Thomas <[email protected]>
AuthorDate: Mon Aug 10 08:36:00 2026 +0100

    Expand test case to confirm bug report is invalid
---
 .../apache/catalina/connector/TestConnector.java   | 34 ++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/test/org/apache/catalina/connector/TestConnector.java 
b/test/org/apache/catalina/connector/TestConnector.java
index e80c2953c3..9cd2c7df6f 100644
--- a/test/org/apache/catalina/connector/TestConnector.java
+++ b/test/org/apache/catalina/connector/TestConnector.java
@@ -215,4 +215,38 @@ public class TestConnector extends TomcatBaseTest {
             Assert.assertFalse(foundTrace);
         }
     }
+
+
+    @Test
+    public void testBug70144a() throws Exception {
+        // Simple test case
+        doTestBug70144("/bug%5C70144");
+    }
+
+
+    @Test
+    public void testBug70144b() throws Exception {
+        // User provided test case
+        doTestBug70144("/search/%22F%5C%22%22");
+    }
+
+
+    private void doTestBug70144(String path) throws Exception {
+        Tomcat tomcat = getTomcatInstance();
+
+        Context root = getProgrammaticRootContext();
+        Tomcat.addServlet(root, "default", new TesterServlet());
+        root.addServletMappingDecoded("/", "default");
+
+        Connector connector = tomcat.getConnector();
+        connector.setAllowBackslash(true);
+
+        tomcat.start();
+
+        ByteChunk body = new ByteChunk();
+        int rc = getUrl("http://localhost:"; + getPort() + path, body, true);
+
+        Assert.assertEquals(200, rc);
+        Assert.assertEquals("OK", body.toString());
+    }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to