The second patch I suggested (to WebdavMethodBase) turns out to have
some problems - it means that the path is stored in the object as an
already-encoded string. As a result, other things trying to read it get
the 'wrong' version - they actually want to get the non-escaped string.
Although the webdav stuff works with the other version, it can easily
fail (and does in code here which extends the methods for additional
purposes)
So, instead I suggest this patch, which does the escaping later - when
it actually needs to output the escaped string (again, this doesn't
actually supply the code for URL encoding, since I don't know where that
best belongs):
Michael
--- WebdavMethodBase.java 2001/02/05 18:20:14 1.10
+++ WebdavMethodBase.java 2001/02/15 06:31:36
@@ -480,7 +481,7 @@
*/
public final String generateRequestLine() {
- return (getName() + " " + path + " " + PROTOCOL + "\r\n");
+ return (getName() + " " + URLEncode(path) + " " + PROTOCOL +
"\r\n");
}