GNOME Bugzilla – Bug 569199
incorrectly open smb workgroup using a space
Last modified: 2009-03-05 14:27:57 UTC
The bug has been opened on https://bugs.launchpad.net/bugs/311689 "This was also an issue in whichever version of Nautilus came with Ubuntu 8.04. If you try to go so a smb:/// in Nautilus and you have a work group with a space in the name ("My Network") Nautilus resolves the spaces to the "%20" character when requesting access to the share ("smb://my%20network/") and this results in a 0 item folder since that is not the proper name for the windows share (should be "smb://my network/"). My installation was originally 8.04 which I upgraded to 8.10 through synaptic in case that matters. My samba configuration itself has been quite an ordeal but I found that when things were working this issue prevented me from seeing my network shares anyways."
I'm not sure why you say the "proper" name is "smb://my network", as that is an invalid URI. In URIs spaces should be escaped as %20. However, we're probably not unescaping that properly somewhere.
2009-03-05 Alexander Larsson <alexl@redhat.com> Bug 569199 – incorrectly open smb workgroup using a space * client/gvfsuriutils.c (g_vfs_encode_uri), (g_vfs_decode_uri): Escape and unescape host part too. This means we handle e.g. smb workgroups with spaces in them. Allowing escapes in hostnames complies with RFC 3986. * client/gdaemonvfs.c (get_mountspec_from_uri): Fix indentation