You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by re...@apache.org on 2001/02/17 05:48:44 UTC
cvs commit: jakarta-slide/src/webdav/server/org/apache/slide/webdav/method CopyMethod.java MoveMethod.java
remm 01/02/16 20:48:44
Modified: src/webdav/server/org/apache/slide/webdav/method
CopyMethod.java MoveMethod.java
Log:
- Fix associated (and very similar) bug on the server side.
Revision Changes Path
1.7 +6 -4 jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/CopyMethod.java
Index: CopyMethod.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/CopyMethod.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- CopyMethod.java 2001/02/15 17:43:56 1.6
+++ CopyMethod.java 2001/02/17 04:48:43 1.7
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/CopyMethod.java,v 1.6 2001/02/15 17:43:56 remm Exp $
- * $Revision: 1.6 $
- * $Date: 2001/02/15 17:43:56 $
+ * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/CopyMethod.java,v 1.7 2001/02/17 04:48:43 remm Exp $
+ * $Revision: 1.7 $
+ * $Date: 2001/02/17 04:48:43 $
*
* ====================================================================
*
@@ -141,7 +141,7 @@
sourceUri = "/";
}
- destinationUri = URLDecode(req.getHeader("Destination"));
+ destinationUri = req.getHeader("Destination");
String HTTPHeader = "http://";
if (destinationUri.startsWith(HTTPHeader)) {
@@ -161,6 +161,8 @@
destinationUri = destinationUri.substring(firstSeparator);
}
}
+
+ destinationUri = URLDecode(destinationUri);
String contextPath = req.getContextPath();
if ((contextPath != null) &&
1.7 +6 -4 jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/MoveMethod.java
Index: MoveMethod.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/MoveMethod.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- MoveMethod.java 2001/02/15 17:43:59 1.6
+++ MoveMethod.java 2001/02/17 04:48:43 1.7
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/MoveMethod.java,v 1.6 2001/02/15 17:43:59 remm Exp $
- * $Revision: 1.6 $
- * $Date: 2001/02/15 17:43:59 $
+ * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/MoveMethod.java,v 1.7 2001/02/17 04:48:43 remm Exp $
+ * $Revision: 1.7 $
+ * $Date: 2001/02/17 04:48:43 $
*
* ====================================================================
*
@@ -137,7 +137,7 @@
sourceUri = "/";
}
- destinationUri = URLDecode(req.getHeader("Destination"));
+ destinationUri = req.getHeader("Destination");
String HTTPHeader = "http://";
if (destinationUri.startsWith(HTTPHeader)) {
@@ -157,6 +157,8 @@
destinationUri = destinationUri.substring(firstSeparator);
}
}
+
+ destinationUri = URLDecode(destinationUri);
String contextPath = req.getContextPath();
if ((contextPath != null) &&