nautilus - recursive copying does not work yet

Bug #186149 reported by writser
18
Affects Status Importance Assigned to Milestone
Nautilus
Expired
Medium
Debian
Expired
Medium
nautilus (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: nautilus

Try copying something into itself. For example, copy /home to your Desktop (which resides in /home). Nautilus then starts some infinite copying cycle, copying /home to /home/name/Desktop, /home/name/Desktop/home to /home/name/Desktop/home/name/Desktop/home, etc. etc. This was tested on a clean install and upgrade of Hardy on 25/1.

Revision history for this message
tyler (durdon-tyler) wrote :

I can confirm this behaviour.

Tested after an upgrade today (2008/01/26 18:00 CET).

Revision history for this message
Kow (kow) wrote :

I should clarify that this cannot happen. When you copy an entire folder what is being copied is evaluated on-the-fly as you are copying it. In other words, copying a folder inside itself will result in recursion (happens in any OS, this is standard behavior) BUT the bug is that nautilus lets it happen and the error is ugly. This could be/is a security vulnerability. I never checked to see how far the recursion occurred for but it happened until the path length exceeded what the filesystem allows for a max path length. The copy shouldn't start at all and nautilus should provide a nice user friendly error message saying something to the effect of "Cannot copy source folder to destination folder which is inside source folder - result is endless recursion."

Changed in nautilus:
status: New → Confirmed
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for sent it upstream.

Changed in nautilus:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: Confirmed → Triaged
Changed in nautilus:
status: Unknown → New
Changed in nautilus:
status: New → Confirmed
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

I can't test this until I get home, but I'm fairly sure this bug was fixed quite early on in Hardy. Can anyone else confirm if it is still an issue?

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Ok, I tried myself and this is still an issue

Revision history for this message
Kristopher Ives (krisives) wrote :

I've done this when it wasn't infinite and it caused my Desktop to be moved to a different place, which had drastic side effects. See my duplicate bug:

https://bugs.launchpad.net/bugs/337072

Changed in debian:
importance: Unknown → Medium
Changed in nautilus:
importance: Unknown → Medium
Changed in debian:
status: Confirmed → Expired
Changed in nautilus:
status: Confirmed → Expired
Revision history for this message
Vadim Rutkovsky (roignac) wrote :

This is properly handled in nautilus 3.3.90

Changed in nautilus (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.