GNOME Bugzilla – Bug 311314
URLs in file-chooser shouldn't require a trailing slash
Last modified: 2018-02-13 14:28:34 UTC
Please describe the problem: When entering an sftp:// uri in a gnome file selector via ctrl+L, the urirequires a trailing slash. Steps to reproduce: 1. Open a file chooser 2. Ctrl+L 3. Type in sftp://gemma, where gemma is some ssh server Error dialog comes up, "Could not retrieve information about the file" "error accessing 'file:///tmp/sftp%3A%2F%2Fgemma': Invalid URI" 4. Alternatively, enter sftp://gemma/ (this has a trailing slash) Success. Actual results: Expected results: Does this happen every time? Other information: This may affect other parts of gnome that take a gnome-vfs uri.
same with the current 2.11 versions
If I do this in a gnome-file-entry I get a crash: Memory status: size: 125005824 vsize: 0 resident: 125005824 share: 0 rss: 31383552 rss_rlim: 0 CPU usage: start_time: 1161604532 rtime: 0 utime: 2112 stime: 0 cutime:1880 cstime: 0 timeout: 232 it_real_value: 0 frequency: 0 Backtrace was generated from '/usr/bin/gnome-panel' Using host libthread_db library "/lib/libthread_db.so.1". [Thread debugging using libthread_db enabled] [New Thread -1208747264 (LWP 14149)] 0x00605402 in __kernel_vsyscall ()
+ Trace 77863
Thread 1 (Thread -1208747264 (LWP 14149))
Commited a fix for the crash. The original bug hasn't been fixed though.
There's the same problem with the GIO backend, which leads me to believe it's a completion bug in GtkFileChooser. The folder contents could not be displayed Error stating file '/home/hadess/sftp:/192.168.1.7': No such file or directory (I entered with the trailing slash) Reproduced with glib2 2.15.6 and gtk+ 2.12.8.
*** Bug 563224 has been marked as a duplicate of this bug. ***
With the GIO backend, entering non-local URIs doesn't work at all for me.
If anybody ever fixes this, might as well fix bug 164404.
We're moving to gitlab! As part of this move, we are closing bugs that haven't seen activity in more than 5 years. If this issue is still imporant to you and still relevant with GTK+ 3.22 or master, please consider creating a gitlab issue for it.
This works as expected now, the file chooser's confirmation button will be disabled if the trailing slash is missing, and it will open the remote directory as expected.