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 84014 - Problems Dragging images with escaped characters [url-encoded + crash]
Problems Dragging images with escaped characters [url-encoded + crash]
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Background
1.99
Other Linux
: High critical
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2002-06-03 21:29 UTC by Joshua Eichorn
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.0



Description Joshua Eichorn 2002-06-03 21:29:50 UTC
I have an image /home/jeichorn/Documents/The Art Of Kernel Code 2.jpg
if i drag it from nautilus into the background properties window i get an
error box with nothing but an ok button.  In the image preview area the
file name is shown url encoded, (The%20Art%20Of%20Kernel%20Code%202.jpg)
and the background changes to all while so it seems that it tries to apply
an image thats not found.

Should be a really simple fix just urldecode the value from a drag and drop


This is the background properties tool from
control-center2-1.99.10.0.200205311757-0.snap.ximian.1
and nautilus from
nautilus2-1.1.18.0.200205311757-0.snap.ximian.1
Comment 1 Anand 2002-06-24 08:32:20 UTC
Confirming on the 21st June sources from CVS. 

I'm also seeing a crash at times on SOLARIS platform, when the image 
file contains 'comma' and 'space' characters 
(E.g. /home/anand/Nature, Mount Everest01.jpg). I aint seeing this in 
Linux though. 

Here is the stack trace.

current thread: t@1
=>[1] _waitid(0x0, 0x352, 0xffbfd6a8, 0x3, 0xfde32e78, 0x5), at 
0xfdb9ced0
  [2] _libc_waitpid(0x352, 0xffbfd810, 0x0, 0xfdcc8000, 0x0, 0x0), at 
0xfdb566c4
  [3] _ti_waitpid(0x352, 0xffbfd810, 0x0, 0x0, 0x0, 0x0), at 
0xfde3ef20
  [4] libgnomeui_segv_handle(0xb, 0x0, 0xffbfd9d8, 0x0, 0x0, 0x0), at 
0xff106e10
  [5] __sighndlr(0xb, 0x0, 0xffbfd9d8, 0xff106c50, 0x0, 0x0), at 
0xfde45c48
  [6] call_user_handler(0xb, 0x0, 0xffbfd9d8, 0x0, 0x0, 0x0), at 
0xfde3fb54
  [7] sigacthandler(0xb, 0x0, 0xffbfd9d8, 0x4, 0x4, 0xfffffff8), at 
0xfde3fd04
  ---- called from signal handler with signal 11 (SIGSEGV) ------
  [8] _memcpy(0xd14000, 0xcf21f0, 0xff2ebfc0, 0x4, 0x4, 0xfffffff8), 
at 0xfe670730
  [9] _dowrite(0x128870, 0x37, 0xffbfe9f8, 0xffbfe984, 0xfdbbdb59, 
0x0), at 0xfdb82188
  [10] _doprnt(0x128870, 0x0, 0xffbfe9f8, 0x7ffffc00, 0x0, 0x129b71), 
at 0xfdb82544
  [11] vsprintf(0x0, 0x128870, 0xffbfeb48, 0x0, 0x81010100, 
0xff0000), at 0xfdb85f70
  [12] g_strdup_vprintf(0x128870, 0xffbfeb48, 0x3, 0xfec7559c, 0x1, 
0x0), at 0xfdd89ecc
  [13] gtk_message_dialog_new(0x0, 0x1, 0x3, 0x1, 0x128870, 0x11), at 
0xfe9c5a48
  [14] peditor_image_set_filename(0xf3270, 0x12dfe0, 0x1, 0x0, 
0xffbfea34, 0x44), at 0x26cf0
  [15] peditor_image_value_changed(0x83e58, 0x56000005, 0x1359f0, 
0xf3270, 0x70, 0xff00), at 0x27394
  [16] notify_listeners_callback(0x81c38, 0x127940, 0x56000005, 
0xf3288, 0xffbfee20, 0x149698),     at 0xfe3d9004
  [17] notify_listener_list(0x81c38, 0x107680, 0x127940, 0xfe3d8d00, 
0xffbfee20, 0x8), at 0xfe3b13fc
  [18] ltable_notify(0x81c38, 0x127940, 0xfe3d8d00, 0xffbfee20, 
0x149680, 0x5), at 0xfe3b17b8
  [19] gconf_listeners_notify(0x81c38, 0x127940, 0xfe3d8d00, 
0xffbfee20, 0x0, 0x0), at 0xfe3b002c
  [20] notify_one_entry(0x83e58, 0x1359f0, 0xffbfee90, 0x0, 0x0, 
0x0), at 0xfe3d9100
  [21] gconf_client_flush_notifies(0x83e58, 0xff000000, 0x666d29, 
0x0, 0x0, 0xffbfef00), at 0xfe3d925c
  [22] notify_idle_callback(0x83e58, 0xff000000, 0x0, 0x0, 0x0, 0x0), 
at 0xfe3d8bd8
  [23] g_idle_dispatch(0x136f50, 0xfe3d8b98, 0x83e58, 0xffbff000, 
0x0, 0x0), at 0xfdd65e1c
  [24] g_main_dispatch(0x79630, 0x0, 0x0, 0x0, 0x0, 0x0), at 
0xfdd60398
  [25] g_main_context_dispatch(0x79630, 0xc8, 0x99cc8, 0x8, 0x8, 
0x5), at 0xfdd62350
  [26] g_main_context_iterate(0x79630, 0x1, 0x1, 0x5efd8, 0xfe807b84, 
0x5), at 0xfdd62ab0
  [27] g_main_loop_run(0x107890, 0x107890, 0x1, 0x0, 0x0, 0x1), at 
0xfdd63ad8
  [28] gtk_main(0xcdbf0, 0xa20f8, 0x1, 0x1, 0x4, 0x0), at 0xfe9a1cd0
  [29] main(0x1, 0xffbff2f4, 0xffbff2fc, 0x52800, 0x0, 0x0), at 
0x1fd08

(Updating the CC field)
Comment 2 Luis Villa 2002-06-26 03:51:54 UTC
Friendly reminder to everyone to use GNOME2 keyword liberally :) 
Comment 3 Luis Villa 2002-07-02 10:00:55 UTC
*** Bug 86858 has been marked as a duplicate of this bug. ***
Comment 4 Luis Villa 2002-07-02 10:02:27 UTC
[Note that two different bugs are sort-of conflated here; one is that
dragging url-encodes when it shouldn't and the other is that a crash
results from that; we should be fixing them both.]
Comment 5 Nat Friedman 2002-07-02 17:58:53 UTC
Marking this sun_repro so that Jody looks at it.
Comment 6 Jody Goldberg 2002-07-03 02:57:41 UTC
I can not replicate the crash, but I can fix the unhandled escapes.
Comment 7 prabhut 2002-07-23 03:42:24 UTC
We are able to reproduce with the source from CVS Head on "15th July" 
when tested on solaris sparc 5.9.
Comment 8 Luis Villa 2002-07-23 22:22:31 UTC
Jacob, can you replicate/fix the crash?
Comment 9 jacob berkman 2002-07-24 15:51:47 UTC
i'm not able to reproduce this with sources from the 17th.

i can drag "Eye Of Gnome.png" from nautilus to the bg properties
capplet and it sets it fine.
Comment 10 Luis Villa 2002-07-29 17:02:14 UTC
prabhut, is it still the same stack trace you guys are seeing? Are
there any more details you might provide for Jacob?
Comment 11 prabhut 2002-07-29 18:37:33 UTC
i tested on solaris intel 5.8(32 bit) with the source from CVS head 
on "22nd July". I am not able to reproduce this problem.
Comment 12 Luis Villa 2002-07-30 03:11:24 UTC
Closing, then.
Comment 13 prabhut 2002-08-26 10:38:26 UTC
I tested using sunbeta 2 build 4 package. source taken from gnome-2-0 
branch dated "Tue Aug 20 13:26:01 BST 2002" (version 2.0.2).

I am still facing the problem. I had a png file with spaces, when I 
dragged and dropped the PNG file from nautilus to background applet, 
background applet crashed.

Can you reopen the bug.
Comment 14 Luis Villa 2002-08-26 19:30:42 UTC
Prabu: can you provide a stack trace?
Comment 15 prabhut 2002-08-30 09:11:38 UTC
When I tested few days back using sun beta 2 build 4 package, I was 
able to reproduce but not I am not able to do it.
Comment 16 Jody Goldberg 2002-08-30 14:35:53 UTC
A bug was fixed for 2.0.1 where spaces were mishandled.  It did not crash but
it also did not handle the filename.  I can not replicate.  Reopen if it
reappears.