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());
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]