Hello,

although my explanation was not only plausible but fundamentally correct, it missed one (unimportant) detail: the real bug in davfs!

davfs2 does not escape the path in its first request (OPTIONS) (in all following requests it does). So the connection fails.

I append a patch for this. Please cd into your davfs2-directory and apply it with
    patch -p1 < davfs2-0.2.3-patch-uri-escape
(assuming you copied the patch-file into the davfs2-directory.

Now urls witch spaces should work if you prevent the shell from (mis)interpreting them. Example:
    "http://foo.bar/path witch spaces"
  or
    http://foo.bar/path\ witch\ spaces

I have also applied this patch to the MAIN branch of the davfs2 cvs repository.

Greetings
Werner

P.S.:
Don't know why my first email does not appear in the bug report the normal way. I am not very experienced with mailing lists. Please tell me if there is something wrong (Re: ? )

--- davfs2-0.2.3-debian/src/webdav.c    2005-06-04 14:29:44.000000000 +0200
+++ davfs2-0.2.3-debian.new/src/webdav.c        2005-07-08 20:33:42.000000000 
+0200
@@ -277,7 +277,9 @@
     /* Initialize the session */
     dav_init_session();
 
-    ret = ne_options(session, server.path, &caps);
+    char *tmp_path = ne_path_escape(server.path);
+    ret = ne_options(session, tmp_path, &caps);
+    NE_FREE(tmp_path);
     
     switch (ret) {
     case NE_OK:

Reply via email to