DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11410>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11410 WebdavResource and escaped path parameters to method constructors Summary: WebdavResource and escaped path parameters to method constructors Product: Slide Version: Nightly Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: WebDAV client AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] WebdavResource has a pair or methods for each DAV method, like mkcolMethod() and mkcolMethod(path) for MKCOL. mkcolMethod() calls mkcolMethod(path), passing it the path of the url with which that instance of WebdavResource was created. It should pass the encoded/escaped path instead. For example, create the following HttpURL object HttpURL url = new HttpURL("user", "pw, "host", 80, "/$$path$%24"); WebdavResource wd = new WebdavResource( url ); wd.mkColMethod(); mkcolMethod() calls mkcolMethod( httpURL.getPath() ) [=> passing /$$path%24 ] mkcolMethod(path) calls new MkcolMethod( HttpURL.getPath(path) ) [=> passing /$$path$$ ] which results in a request line of MKCOL /%24%24path%24%24 HTTP/1.1 instead of MKCOL /%24%24path%24%2524 HTTP/1.1 I believe that the original mkcolMethod( httpURL.getPath() ); should be mkcolMethod( httpURL.getEscapedPath() ); and that this applies to all these method pairs in WebdavResource. The path passed to the methods of the form method(path) should be an escaped path (this is not clear in the documentation/comments either). -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
