Nautilus not able to handle litteral IPv6 address like smb://::1/sharing/

Bug #492948 reported by Sander Jonkers
26
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Nautilus
Fix Released
High
gvfs (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: nautilus

It seems Nautilus' SMB does not know how to handle litteral IPv6 address like smb://::1/sharing/ . This results in:

Could not find "smb:///sharing".
Please check the spelling and try again.

The variant smb://[::1]/sharing/ results in:

Could not display "smb://[::1]/sharing/".

Expected behaviour: just a succesful connection to the share /sharing/ on the localhost via IPv6, by using ::1 or [::1].

This bug is relevant because SMB itself over IPv6 works great and is a solution for SMB access without IPv4 NAT problems, and/but a FQDN is not always available.
NB: ::1 is just an example. Addresses like 2001:... don't work either.

Important remarks:

Nautilus' SMB does *correctly* handle:
- litteral IPv4 address like 127.0.0.1
- name resolving to IPv4 address
- name resolving to IPv6 address (yes!)
- smb://ip6-localhost/sharing/ (yes!)
- Bonjour/zereconf names like smb://quirinius.local./sharing/

smbclient does *correctly* handle litteral IPv6 addresses:

sander@quirinius:~$ smbclient -N -L ::1
Anonymous login successful
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.4.0]

 Sharename Type Comment
 --------- ---- -------
 print$ Disk Printer Drivers
 IPC$ IPC IPC Service (quirinius server (Samba, Ubuntu))
 Brother-HL-2030-series Printer Brother HL-2030 series
 sharing Disk
::1 is an IPv6 address -- no workgroup available
sander@quirinius:~$

ProblemType: Bug
Architecture: i386
Date: Sat Dec 5 21:28:24 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/bin/nautilus
Package: nautilus 1:2.28.1-0ubuntu3
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-15.50-generic
SourcePackage: nautilus
Uname: Linux 2.6.31-15-generic i686

Revision history for this message
Sander Jonkers (jonkers) wrote :
Revision history for this message
Sander Jonkers (jonkers) wrote :

Things I tried that don't work:

nautilus smb://::1/sharing
nautilus 'smb://::1/sharing'
nautilus smb://[::1]/sharing
nautilus smb://\:\:\1/sharing

This IPv6 name does work:

nautilus smb://ip6-localhost/sharing/

And FWIW: bonjour / zeroconf works too:

nautilus smb://quirinius.local./sharing/

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report. The issue is an upstream one and it would be nice if somebody having it could send the bug the to the people writting the software (https://wiki.ubuntu.com/Bugs/Upstream/GNOME)

Changed in nautilus (Ubuntu):
assignee: nobody → Ubuntu Desktop Bugs (desktop-bugs)
importance: Undecided → Low
Revision history for this message
Sander Jonkers (jonkers) wrote :

As the command

   $ nautilus smb://2001:666:2:1/sharing

leads to error message

   Could not display "smb://2001/sharing/".

it seems the parser (?) chops off everything starting from the : (maybe because the : could be the separator between name/FQDN and port?), I tried to escape the colon:

    $ nautilus smb://%3A%3A1/sharing

Alas, this leads to the same error:

   Could not find "smb:///sharing".

So, even the escaped colon (%3A) is seen as a colon and leads to a chop-off. :-(

As

  $ nautilus smb://[::1]/sharing

leads to

  Could not display "smb://[::1]/sharing/".

I don't think there is a need to escape the [ and ].

IMHO: the best solution is that Nautilus' SMB should be triggered by [ ] to use the included stuff as a litteral IPv6 address

Revision history for this message
Sander Jonkers (jonkers) wrote :

Reported (hopefully correct) Upstream: https://bugzilla.gnome.org/show_bug.cgi?id=604116

Changed in nautilus (Ubuntu):
status: New → Triaged
Emmet Hikory (persia)
tags: added: ipv6
Changed in nautilus:
importance: Unknown → Medium
status: Unknown → New
Revision history for this message
Jan Claeys (janc) wrote :

The correct solution is to use [] around the IPv6 address.

This bug still exists in natty BTW...

Changed in nautilus:
status: New → Fix Released
Changed in nautilus:
importance: Medium → High
status: Fix Released → Confirmed
Changed in nautilus:
status: Confirmed → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

The issue is fixed in the current version

affects: nautilus (Ubuntu) → gvfs (Ubuntu)
Changed in gvfs (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.