GNOME Bugzilla – Bug 572429
Nautilus can't mount a webfolder if the URI path contains an ampersand character
Last modified: 2011-05-14 10:05:03 UTC
Please describe the problem: When I try to mount a webfolder using an URI which contains an ampersand (&) character in the path, Nautilus displays an error message. For example, an URI like this one can not be mounted: davs://server.com/technocology%20&%20architecture Steps to reproduce: 1. Start Nautilus. 2. Mount a webfolder URI which contains an ampersand, for example davs://server.com/technocology%20&%20architecture Actual results: Nautilus displays the following error message: "Could not display "davs://server.com/technocology%20&%20architecture". Error: Response invalid Please select another viewer and try again." Expected results: Nautilus should mount the webfolder, because an URI path may contain ampersand characters according to RFC 3986. Does this happen every time? Yes. Other information:
Does it work if you escape the & as %26?
No, this does not help. I noticed that when I type %26 in the URL, in the message dialog this is expanded to %2526. I don't know whether this is just a problem of the message dialog though.
Possibly Bug#561515, Bug#572429, and Bug#455585 are all related or duplicates?
Yes, they all seem to be related. You can combine them into a single problem report. I think the problem can be generalized into the following description: Handling of WebDAV file names is broken in Nautilus, if the filename contains URI special characters as described in rfc2396, chapter 2.2 "Reserved Characters". Best, Werner
Um, I shouldn't have posted so soon. I think we should note, that the special characters which occur in the filename are properly encoded in the URI (or URL for that matter). Also rfc2396 is obsolete. I should have quoted rfc3986. Okay, here it comes again: Handling of WebDAV file names is broken in Nautilus, if the filename contains reserved characters as described in rfc3986, chapter 2.2 "Reserved Characters". The WebDAV server in question (ILIAS Learning Management System) does properly use escape encoding for reserved characters as described in chapter 2.2 in rfc3986. hth, Werner
Very likely a dup of bug 561515. In the case of the example url it would joke already on the spaces that are in the url (and also on the ampersand).
I made some local tests with fixes that I came up with for bug 561515 and with those fixes applied the ampersand character works fine. I am pretty much convinced now that this is a dup of 561515. *** This bug has been marked as a duplicate of bug 561515 ***