Wrong filename when restoring from Trash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Nautilus |
Fix Released
|
Medium
|
|||
One Hundred Papercuts |
Fix Released
|
Medium
|
Timothy Arceri | ||
nautilus (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
In this particular scenario, the filename is wrong when restoring a file from Trash. Here is the exact scenario, that I am able to reproduce 100% of the time on Ubuntu 12.04 and 10.04 (it probably affects all Ubuntu versions) :
1. Put 2 files (their content can be identical or different) with the same name in 2 different directories :
mkdir ~/test1
mkdir ~/test2
cp installation_
cp report.pdf test2/doc.pdf
2. Open Nautilus ; go to the "test1" directory and delete the file "doc.pdf". Go to the "test2" directory and delete the file "doc.pdf".
3. In the Trash directory, you now have :
% ls -l ~/.local/
total 19M
-rw-r--r-- 1 alexis alexis 758K avril 5 14:29 doc.2.pdf
-rw-r--r-- 1 alexis alexis 18M avril 5 14:29 doc.pdf
% ls -l ~/.local/
total 8,0K
-rw-rw-r-- 1 alexis alexis 82 avril 5 14:30 doc.2.pdf.trashinfo
-rw-rw-r-- 1 alexis alexis 82 avril 5 14:30 doc.pdf.trashinfo
% cat ~/.local/
[Trash Info]
Path=/home/
DeletionDate=
% cat ~/.local/
[Trash Info]
Path=/home/
DeletionDate=
As you can see, the file "doc.pdf" from the "test2" directory is renamed "doc.2.pdf" in the Trash directory, but it's related "trashinfo" file has the right filename "doc.pdf" in the "Path" variable.
4. In Nautilus, go to the Trash, select the 2 files and clic on "Restore".
5. Now look at the names of the restored files :
% ls -l ~/test1/
total 18M
-rw-r--r-- 1 alexis alexis 18M avril 5 14:29 doc.pdf
% ls -l ~/test2/
total 760K
-rw-r--r-- 1 alexis alexis 758K avril 5 14:29 doc.2.pdf
As you can see, the file restored in the "test2" directory has a filename "doc.2.pdf" instead of "doc.pdf".
This bug should certainly be reported upstream, but I don't know which software component is responsible for this problem ; if someone tells me which software component is responsible, I can take the time to report the bug upstream.
Related branches
Changed in nautilus (Ubuntu): | |
importance: | Undecided → Low |
status: | Confirmed → Triaged |
Changed in nautilus: | |
importance: | Unknown → Medium |
status: | Unknown → New |
Changed in hundredpapercuts: | |
milestone: | none → raring-round-2 |
status: | New → Triaged |
assignee: | nobody → Papercuts Ninja (papercuts-ninja) |
Changed in hundredpapercuts: | |
assignee: | Paper Cuts Ninja (papercuts-ninja) → Timothy Arceri (t-fridey) |
status: | Triaged → In Progress |
Changed in hundredpapercuts: | |
milestone: | none → raring-ee |
Changed in hundredpapercuts: | |
milestone: | raring-ee → papercuts-nautilus |
Changed in hundredpapercuts: | |
status: | In Progress → Fix Committed |
Changed in nautilus (Ubuntu): | |
status: | Triaged → Fix Committed |
Changed in nautilus: | |
status: | New → Fix Released |
Changed in hundredpapercuts: | |
status: | Fix Committed → Fix Released |
Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.
To change the source package that this bug is filed about visit https:/ /bugs.launchpad .net/ubuntu/ +bug/974208/ +editstatus and add the package name in the text box next to the word Package.
[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]