(tomcat) branch main updated: Expand test case to confirm bug report is invalid

[email protected]
Newsgroups gmane.comp.jakarta.tomcat.devel
Message-ID <178634739269.1517914.7603553971103153528@gitbox3-he-fi.apache.org>
This is an automated email from the ASF dual-hosted git repository.

markt-asf 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 8984094924 Expand test case to confirm bug report is invalid
8984094924 is described below

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

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

diff --git a/test/org/apache/catalina/connector/TestConnector.java b/test/org/apache/catalina/connector/TestConnector.java
index ded4ea8532..9cd2c7df6f 100644
--- a/test/org/apache/catalina/connector/TestConnector.java
+++ b/test/org/apache/catalina/connector/TestConnector.java
@@ -218,7 +218,20 @@ public class TestConnector extends TomcatBaseTest {
 
 
     @Test
-    public void doTestBug70144() throws Exception {
+    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();
@@ -231,7 +244,7 @@ public class TestConnector extends TomcatBaseTest {
         tomcat.start();
 
         ByteChunk body = new ByteChunk();
-        int rc = getUrl("http://localhost:" + getPort() + "/bug%5C70144", body, true);
+        int rc = getUrl("http://localhost:" + getPort() + path, body, true);
 
         Assert.assertEquals(200, rc);
         Assert.assertEquals("OK", body.toString());
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.