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 572681 - Drag and drop ".." from folders pane causes copying loop
Drag and drop ".." from folders pane causes copying loop
Status: RESOLVED OBSOLETE
Product: gthumb
Classification: Other
Component: general
2.10.x
Other All
: Normal critical
: ---
Assigned To: Paolo Bacchilega
Paolo Bacchilega
Depends on:
Blocks:
 
 
Reported: 2009-02-21 19:51 UTC by David Paleino
Modified: 2009-09-23 12:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix infinite loop when dragging ".." (1.12 KB, patch)
2009-02-21 19:52 UTC, David Paleino
none Details | Review

Description David Paleino 2009-02-21 19:51:38 UTC
Please describe the problem:
Hello,
a Debian user reported [1] a bug against gthumb. Dragging ".." from the folders pane to the thumbnail viewer causes an infinite loop, until it reaches filesystem's limits. I.e. if you are in /tmp/foo/ and drag .., then it creates /tmp/foo/tmp/foo/tmp/foo/...

I managed to make a patch, will attach to this report. It's a simple patch, maybe the problem can be handled better.

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=420195

Steps to reproduce:
1. Go to a folder, with the folders pane open
2. Drag ".." into the thumbnail viewer


Actual results:
".." gets infinitely copied into $CWD

Expected results:
Nothing. Or, showing the contents of ".." in the thumbnail viewer, and going up in the folders pane.

Does this happen every time?
Yes.

Other information:
Reported on 2.10.8, also found in 2.10.10, and in a 2.11.0 snapshot (rev2319) I made for Debian/experimental.
Comment 1 David Paleino 2009-02-21 19:52:54 UTC
Created attachment 129219 [details] [review]
Fix infinite loop when dragging ".."

Applied to the Debian 2.10.10 package. Will soon apply to the 2.10.8 package shipped with the just-released Lenny (5.0.0)
Comment 2 Michael Chudobiak 2009-09-23 12:51:46 UTC
Marking as obsolete, due to the rewrite in ext branch (http://live.gnome.org/gthumb).