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 303809 - dropping a link from firefox to nautilus that points to redirected address
dropping a link from firefox to nautilus that points to redirected address
Status: RESOLVED WONTFIX
Product: gnome-vfs
Classification: Deprecated
Component: Module: http
2.12.x
Other other
: High critical
: ---
Assigned To: gnome-vfs maintainers
Nautilus Maintainers
: 316036 380294 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-05-11 15:41 UTC by sam tygier
Modified: 2008-09-06 19:07 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
adds limited support for redirects from http to another protocol (9.93 KB, patch)
2005-10-14 01:35 UTC, Haukur Hreinsson
reviewed Details | Review

Description sam tygier 2005-05-11 15:41:38 UTC
Distribution: Debian 3.1
Package: nautilus
Severity: normal
Version: GNOME2.10.0 2.10.0
Gnome-Distributor: Ubuntu
Synopsis: Nautilus crash after dropping a link from firefox to a nautilus window
Bugzilla-Product: nautilus
Bugzilla-Component: general
Bugzilla-Version: 2.10.0
BugBuddy-GnomeVersion: 2.0 (2.10.0)
Description:
Steps to reproduce the crash:
1.  go to
http://www.ctan.org/tex-archive/help/Catalogue/entries/figflow.html in
firefox
2.  drag one of the linked .zip files to a nautilus window
3. click down load in the nautilus dialog
4 crash

Expected Results:
the file to be downloaded

How often does this happen?
several files had downloaded happily, i am not sure if there was
anything different with the on the crashed nautilus.


Additional Information:
i am not sure whether it was a http or ftp link that did this, but i am
pretty sure that i had previously download both with this method.

Mozilla/5.0 (X11; U; Linux ppc; en-GB; rv:1.7.6) Gecko/20050506
Firefox/1.0 (Ubuntu package 1.0.2)
upto date hoary system.

uname -a
Linux titania 2.6.10-5-powerpc #1 Tue Apr 5 12:44:32 UTC 2005 ppc
GNU/Linux




Debugging Information:

Backtrace was generated from '/usr/bin/nautilus'

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 6417)]
[New Thread 32769 (LWP 6435)]
[New Thread 16386 (LWP 6436)]
[New Thread 32771 (LWP 6447)]
[New Thread 49156 (LWP 6448)]
[New Thread 65541 (LWP 6449)]
[New Thread 81926 (LWP 6451)]
[New Thread 376839 (LWP 11601)]
[New Thread 19021832 (LWP 5008)]
[New Thread 19038217 (LWP 5009)]
[New Thread 19054602 (LWP 5010)]
[New Thread 19070987 (LWP 5011)]
[New Thread 19136524 (LWP 6020)]
0x0f98c110 in waitpid () from /lib/libpthread.so.0
  • #0 waitpid
    from /lib/libpthread.so.0
  • #1 waitpid
    from /lib/libpthread.so.0




------- Bug moved to this database by unknown@bugzilla.gnome.org 2005-05-11 15:41 UTC -------


Unknown version 2.10.0 in product nautilus.  Setting version to "2.10.x".

Comment 1 sam tygier 2005-05-11 15:55:01 UTC
had a closer look. seems that the link i dragged was not pointing to an actual
file due to a typo on that page.

dragging the link
http://theory.uwinnipeg.ca/scripts/CTAN/macros/latex/contrib/isotope/.zip to
nautilus and clicking download seems to be reproduceble.

just cliking on the link gives a 550 failed to change directory error. nautilus
should handle this http reply and give a nice error.
Comment 2 Martin Wehner 2005-05-14 15:03:25 UTC
I can reproduce with head, the stack goes like this:

Thread 6 (Thread -1225684048 (LWP 26940))

  • #0 _dl_sysinfo_int80
    from /lib/ld-linux.so.2
  • #1 __waitpid_nocancel
    from /lib/tls/libpthread.so.0
  • #2 libgnomeui_segv_handle
    at gnome-ui-init.c line 754
  • #3 <signal handler called>
  • #4 strcmp
    from /lib/tls/libc.so.6
  • #5 IA__g_str_equal
    at gstring.c line 69
  • #6 http_session_uri_equal
    at http-neon-method.c line 386
  • #7 http_follow_redirect
    at http-neon-method.c line 1808
  • #8 http_get_file_info
    at http-neon-method.c line 1902
  • #9 do_get_file_info
    at http-neon-method.c line 2879
  • #10 gnome_vfs_get_file_info_uri_cancellable
    at gnome-vfs-cancellable-ops.c line 194
  • #11 gnome_vfs_get_file_info_uri
    at gnome-vfs-ops.c line 332
  • #12 list_add_items_and_size
    at gnome-vfs-xfer.c line 660
  • #13 gnome_vfs_xfer_uri_internal
    at gnome-vfs-xfer.c line 2394
  • #14 _gnome_vfs_xfer_private
    at gnome-vfs-xfer.c line 2623
  • #15 _gnome_vfs_job_execute
    at gnome-vfs-job.c line 1564
  • #16 thread_routine
    at gnome-vfs-job-slave.c line 64
  • #17 thread_entry
    at gnome-vfs-thread-pool.c line 186
  • #18 g_thread_create_proxy
    at gthread.c line 561
  • #19 start_thread
    from /lib/tls/libpthread.so.0
  • #20 clone
    from /lib/tls/libc.so.6

Comment 3 Martin Wehner 2005-05-14 15:06:48 UTC
The server seems to send a redirect to a ftp url. That leads to resolve_alias
returning (null), which is fed into g_str_equal from http_session_uri_equal.
Comment 4 sam tygier 2005-06-15 21:21:33 UTC
this could be a dupe of 306246 which has been fixed.
Comment 5 Haukur Hreinsson 2005-10-09 02:17:02 UTC
*** Bug 316036 has been marked as a duplicate of this bug. ***
Comment 6 sam tygier 2005-10-09 10:59:30 UTC
still exists in gnome 2.12.1 (the version in ubuntu 5.10)
Comment 7 Christian Kirbach 2005-10-10 12:10:34 UTC
For the record: this is also reproducable with Gnome 2.10.0
Comment 8 Haukur Hreinsson 2005-10-14 01:35:24 UTC
Created attachment 53441 [details] [review]
adds limited support for redirects from http to another protocol

The patch adds awareness of foreign protocols to http_get_file_info,
http_transfer_start, and do_read in modules/http-neon-method.c. This is just
enough to support the use case that triggered the crash.

The patch is to CVS HEAD.

I'm new to gnome hacking and I've been away from C for years, so I'm expecting
comments :-)

Two things to look into:
1) When testing the patch by dragging
http://www.omg.org/cgi-bin/apps/doc?@formal/02-11-05.pdf to the desktop,
there's a period of a couple of seconds where nautilus doesn't draw the
desktop. Presumably it's busy logging in to omg.org's FTP server. I don't know
what to do about that.
2) I don't have a clear understanding of the security picture here. Do bad
things happen if gnome-vfs is asked for http://example.com/ and example.com
issues a redirect to file:///etc/shadow? Should the code accept only non-local
protocols? Or a whitelist of protocols?
Comment 9 Christian Neumair 2006-02-23 16:15:55 UTC
Thanks for your efforts!
I like the way you tackle the issue, but I'm not sure how some generic handler is meant to figure out the actual target URI, because we *do* want to access the "ftp" URI.
Comment 10 Germán Poo-Caamaño 2006-11-29 01:01:47 UTC
*** Bug 380294 has been marked as a duplicate of this bug. ***
Comment 11 André Klapper 2008-09-06 19:07:52 UTC
gnome-vfs has been deprecated and superseded by gio/gvfs since GNOME 2.22, hence mass-closing many of the gnome-vfs requests/bug reports. This means that gnome-vfs is NOT actively maintained anymore, however patches are still welcome.

If your reported issue is still valid for gio/gvfs, please feel free to file a bug report against glib/gio or gvfs.

@Bugzilla mail recipients: query for gnome-vfs-mass-close to get rid of these notification emails all together.


General further information: http://en.wikipedia.org/wiki/GVFS 
Reasons behind this decision are listed at http://www.mail-archive.com/gnome-vfs-list@gnome.org/msg00899.html