file-roller delete file in certain circumstances
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
File Roller |
Fix Released
|
Medium
|
|||
file-roller (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
Binary package hint: zip
1) lsb_release -rd
Description: Ubuntu Vivid Vervet (development branch)
Release: 15.04
2) apt-cache policy file-roller
file-roller:
Installed: 3.12.2-0ubuntu1
Candidate: 3.12.2-0ubuntu1
Version table:
*** 3.12.2-0ubuntu1 0
500 http://
100 /var/lib/
3) What is expected to happen when one creates a an empty file on the Desktop:
test.txt
Highlight test.txt > secondary click > Compress... > Filename: example > in drop down choose .ZIP > Location: Desktop > Create > Close > highlight both test.txt and example.zip > secondary click > Compress... > Filename: example > in drop down choose .ZIP > Location: Desktop > Create > a window pops up noting:
Archive Manager
A file named "example.zip" already exists. Do you want to replace it?
The file already exists in "Desktop". Replacing it will overwrite its contents.
Click Replace and no files are deleted.
4) What happens instead is a dialog pops up noting:
Compress
An error occurred while adding files to the archive.
You can't add an archive to itself.
Click Close and one will notice example.zip has been permanently deleted.
Changed in zip: | |
assignee: | nobody → yves-debongnie |
Changed in file-roller: | |
assignee: | yves-debongnie → nobody |
Changed in fileroller: | |
status: | Unknown → New |
Changed in file-roller: | |
importance: | Unknown → Medium |
description: | updated |
tags: | added: hardy vivid |
Changed in file-roller (Ubuntu): | |
assignee: | Ubuntu Desktop Bugs (desktop-bugs) → nobody |
Changed in file-roller: | |
status: | New → Fix Released |
I have been able to reproduce the bug. Similarly to Miguel, I did the following :
1) I created a folder, in which I created a few text files. I named one of them example.zip.
2) I then selectionned the files I created, right-clicked on them
and chosed "Créer une archive" ("Create an archive") in the drop-down menu
3) In the dialog popping up, I selected the .zip extension and filled in "example" as name
4) I then clicked on "Créer" ("Create").
5) A dialog popped up : "L'archive existe déjà. Voulez-vous l'écraser ?"
("The archive exists already. Do you want to overwrite it ?). I clicked on "Overwrite".
6) After the first dialog disappeared, another appeared :
"Une erreur s'est produite durant l'ajout de fichiers à l'archive."
"Vous ne pouvez pas ajouter une archive dans elle-même."
Meaning :
"An error occured during the addition of files to the archive"
"You can not add an archive to itself"
I then clicked on "Valider" ("Ok"), which was the only button available.
After this, the file example.zip that was previously in the folder had disappeared.
I added in French the messages I got when reproducing the bug in case my translation into
English is wrong.
Also, my version of Ubuntu is 8.04, and the zip package installed on my computer is 2.32-1.
I confirmed the bug.
Output of "uname -a" :
Linux Belzebuth 2.6.24-16-generic #1 SMP Thu Apr 10 13:23:42 UTC 2008 i686 GNU/Linux
Output of "apt-cache show zip" attached as "zip-version" file.