This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push:
new e424c5ffc8 URL wasn't valid (un-encoded spaces). URL class was
tolerant. URI is not
e424c5ffc8 is described below
commit e424c5ffc89cd773683eeb59dc616a41abfc393e
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Nov 16 14:41:49 2022 +0000
URL wasn't valid (un-encoded spaces). URL class was tolerant. URI is not
---
test/org/apache/catalina/ant/TestDeployTask.java | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/test/org/apache/catalina/ant/TestDeployTask.java
b/test/org/apache/catalina/ant/TestDeployTask.java
index 8fc3ed2daf..0441d01284 100644
--- a/test/org/apache/catalina/ant/TestDeployTask.java
+++ b/test/org/apache/catalina/ant/TestDeployTask.java
@@ -52,7 +52,6 @@ public class TestDeployTask extends TomcatBaseTest {
testExecute(deployTask, new
File("test/deployment/context.war").toURI().toString());
testExecute(deployTask, new
File("test/deployment/context.war").getAbsolutePath());
testExecute(deployTask, "jar:" + new
File("test/deployment/context.jar").toURI().toString() + "!/context.war");
- testExecute(deployTask, "file:./test/deployment/dir with
spaces/context.war");
testExecute(deployTask, new File("test/deployment/dir with
spaces/context.war").toURI().toString());
testExecute(deployTask, new File("test/deployment/dir with
spaces/context.war").getAbsolutePath());
testExecute(deployTask, "jar:" + new File("test/deployment/dir with
spaces/context.jar").toURI().toString()
@@ -74,8 +73,16 @@ public class TestDeployTask extends TomcatBaseTest {
testExecute(deployTask, "sc:./test/deployment/context.war");
}
+ @Test(expected = BuildException.class)
+ public void bug58086d() {
+ DeployTask deployTask = new DeployTask();
+ setDefaults(deployTask);
+ testExecute(deployTask, "file:./test/deployment/dir with
spaces/context.war");
+ }
+
+
@Test
- public void bug58086d() throws Exception {
+ public void bug58086e() throws Exception {
Tomcat tomcat = getTomcatInstance();
File root = new File("test/deployment");
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]