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 311314 - URLs in file-chooser shouldn't require a trailing slash
URLs in file-chooser shouldn't require a trailing slash
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
2.12.x
Other All
: Normal minor
: future
Assigned To: gtk-bugs
Federico Mena Quintero
: 563224 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-07-23 04:28 UTC by Phil Crosby
Modified: 2018-02-13 14:28 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12



Description Phil Crosby 2005-07-23 04:28:09 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.
Comment 1 Sebastien Bacher 2005-07-23 12:22:17 UTC
same with the current 2.11 versions
Comment 2 Kjartan Maraas 2006-10-23 14:47:07 UTC
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 ()

Thread 1 (Thread -1208747264 (LWP 14149))

  • #0 __kernel_vsyscall
  • #1 ??
    from /lib/libpthread.so.0
  • #2 libgnomeui_segv_handle
    at gnome-ui-init.c line 870
  • #3 <signal handler called>
  • #4 IA__g_utf8_validate
    at gutf8.c line 1561
  • #5 strdup_len
    at gconvert.c line 984
  • #6 IA__g_filename_to_utf8
    at gconvert.c line 1299
  • #7 browse_dialog_ok
    at gnome-file-entry.c line 460
  • #8 IA__g_cclosure_marshal_VOID__INT
    at gmarshal.c line 216
  • #9 IA__g_closure_invoke
    at gclosure.c line 490
  • #10 signal_emit_unlocked_R
    at gsignal.c line 2438
  • #11 IA__g_signal_emit_valist
    at gsignal.c line 2197
  • #12 IA__g_signal_emit
    at gsignal.c line 2241
  • #13 IA__gtk_dialog_response
    at gtkdialog.c line 835
  • #14 action_widget_activated
    at gtkdialog.c line 534
  • #15 IA__g_cclosure_marshal_VOID__VOID
    at gmarshal.c line 77
  • #16 IA__g_closure_invoke
    at gclosure.c line 490
  • #17 signal_emit_unlocked_R
    at gsignal.c line 2438
  • #18 IA__g_signal_emit_valist
    at gsignal.c line 2197
  • #19 IA__g_signal_emit
    at gsignal.c line 2241
  • #20 IA__gtk_button_clicked
    at gtkbutton.c line 889
  • #21 gtk_button_finish_activate
    at gtkbutton.c line 1557
  • #22 button_activate_timeout
    at gtkbutton.c line 1495
  • #23 g_timeout_dispatch
    at gmain.c line 3422
  • #24 IA__g_main_context_dispatch
    at gmain.c line 2045
  • #25 g_main_context_iterate
    at gmain.c line 2677
  • #26 IA__g_main_loop_run
    at gmain.c line 2881
  • #27 IA__gtk_main
    at gtkmain.c line 1001
  • #28 main
    at main.c line 97

Comment 3 Kjartan Maraas 2007-10-01 14:34:57 UTC
Commited a fix for the crash. The original bug hasn't been fixed though.
Comment 4 Bastien Nocera 2008-03-07 02:50:48 UTC
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.
Comment 5 André Klapper 2008-12-09 23:16:55 UTC
*** Bug 563224 has been marked as a duplicate of this bug. ***
Comment 6 Johan Brannlund 2009-03-23 01:06:26 UTC
With the GIO backend, entering non-local URIs doesn't work at all for me.
Comment 7 Liquider 2012-12-07 23:47:19 UTC
If anybody ever fixes this, might as well fix bug 164404.
Comment 8 Matthias Clasen 2018-02-10 04:37:46 UTC
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.
Comment 9 Bastien Nocera 2018-02-13 14:28:34 UTC
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.