After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 635333 - Auto-complete no longer works over SFTP in the Nautilus Location Bar
Auto-complete no longer works over SFTP in the Nautilus Location Bar
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: Location Bar
2.32.x
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-11-20 07:17 UTC by bgeezer
Modified: 2011-02-04 21:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed patch (1.43 KB, patch)
2011-02-02 11:26 UTC, Stefano Teso
committed Details | Review

Description bgeezer 2010-11-20 07:17:52 UTC
==========
Overview:
==========
When using Nautilus to browse local files, the text-based location bar autocompletes folder names as they are typed.  This autocomplete feature also used to work when using Nautilus to browse remote systems through SFTP.  For example, I have access to several systems with Nautilus 2.30.1 (running in Ubuntu 10.04 Lucid Lynx with GNOME 2.30.2), in which autocomplete currently works correctly over SFTP.

Recently, I've migrated two of my systems to Ubuntu 10.10 Maverick Meerkat running GNOME 2.32.0 with Nautilus 2.32.0.  Autocomplete still works on local directories, but no longer seems to be active over SFTP.  I work with Nautilus through SFTP a lot, and autocomplete is a very useful feature that has saved me a lot of time and effort -- it's sad to see that it no longer works.

==========
Steps to Reproduce:
==========
1)  Display the Nautilus location bar (either use ctrl-L in Nautilus to display the location bar, or modify the /apps/nautilus/preferences/always_use_location_entry to 'true' using the GNOME configuration tool to permanently display the location bar).

2) Use Nautilus to SFTP to a remote system.  

3) Start typing the name of a directory that exists on the remote system in the Nautilus location bar.

==========
Actual Results:
==========

Nautilus does not autocomplete the directory name over SFTP

==========
Expected Results:
==========

Nautilus should autocomplete directory names over SFTP

==========
Build Date & Platform
==========

Nautilus 2.32.0 on Ubuntu 10.10 Maverick Meerkat


==========
Additional Builds and Platforms
==========

Doesn't occur in Nautilus 2.30.1 on Ubuntu 10.04 Lucid Lynx
Comment 1 Stefano Teso 2011-02-02 11:26:30 UTC
Created attachment 179868 [details] [review]
proposed patch

Hi,

the attached patch fixes this bug. The problem is that while checking for relative paths in nautilus-location-entry.c::try_to_expand_path (), URIs with a scheme aren't checked for, inducing a bogus absolute_path.

The patch also fixes a possible leak.
Comment 2 Cosimo Cecchi 2011-02-03 14:16:23 UTC
Review of attachment 179868 [details] [review]:

Looks good, thanks.
Comment 3 Cosimo Cecchi 2011-02-04 21:36:09 UTC
Pushed now.