Ubuntu

file-roller delete file in certain circumstances

Reported by Miguel on 2008-06-05
4
Affects Status Importance Assigned to Milestone
File Roller
New
Medium
file-roller (Ubuntu)
Medium
Ubuntu Desktop Bugs

Bug Description

Binary package hint: zip

well i use the zip compression, but it may be found in others

Steps to reproduce the bug:

1- Create a folder called example, put a few files on it and one .zip file called example.zip
2- Choose all the files on the folder with nautilus and click on "Create Archive".
3- The Archive name per default is "example" now select .zip as the extension of the new .zip file
4- A Question is asked "The archive is already present. Do you want to overwrite it?" Select yes.
5- An error is thrown: "An error occurred while adding files to the archive. You can't add an archive to itself."

Expected Results:

Nothing, no file is compressed, the folder keeps equal

Actual Results:

The old example.zip is deleted

Changed in zip:
assignee: nobody → yves-debongnie
Yves Debongnie (yves-debongnie) wrote :

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.

Yves Debongnie (yves-debongnie) wrote :

I have been able to reproduce the bug.

Changed in zip:
status: New → Confirmed
Changed in file-roller:
assignee: yves-debongnie → nobody
Yves Debongnie (yves-debongnie) wrote :

After a bit more looking around, it seems that it is the "file-roller" package which has the problem.

To determine this, I executed the following command in the console when reproducing the bug :
xprop | grep WM_CLASS

I then clicked on the dialogs, which gave me this output :
WM_CLASS(STRING) = "file-roller", "File-roller"

Also, I tried to reproduce the bug using the "zip" program in a console, and I could not reproduce
the bug. Here is what I tried to reproduce the bug at the command line :

------------------------------------------
yves@Belzebuth:~/Music$ ls -l
total 8
-rw-r--r-- 1 yves yves 18 2008-06-05 13:36 auie
-rw-r--r-- 1 yves yves 0 2008-06-05 13:36 auie~
-rw-r--r-- 1 yves yves 20 2008-06-05 13:36 eiau
-rw-r--r-- 1 yves yves 0 2008-06-05 13:36 eiau~
yves@Belzebuth:~/Music$ zip example.zip eiau auie
  adding: eiau (stored 0%)
  adding: auie (stored 0%)
yves@Belzebuth:~/Music$ zip example.zip eiau auie example.zip
updating: eiau (stored 0%)
updating: auie (stored 0%)
yves@Belzebuth:~/Music$ rm example.zip
yves@Belzebuth:~/Music$ touch example.zip
yves@Belzebuth:~/Music$ zip example.zip eiau auie example.zip
 zip warning: missing end signature--probably not a zip file (did you
 zip warning: remember to use binary mode when you transferred it?)

zip error: Zip file structure invalid (example.zip)
yves@Belzebuth:~/Music$
------------------------------------------

Pedro Villavicencio (pedro) wrote :

Thanks for your report, may you tell us some steps in order to reproduce the bug with file-roller? thanks.

Changed in file-roller:
assignee: nobody → desktop-bugs
status: Confirmed → Incomplete
Yves Debongnie (yves-debongnie) wrote :

Um, I don't understand ... you have a full step-by-step explanation on how to reproduce the bug. Is there anything missing ? What other information do you need ?

Also, to clear up possible confusions, my last post was only explaining how I deduced that the bug is affecting file-roller instead of the zip package.

Pedro Villavicencio (pedro) wrote :

the description was unclear, I've updated it to reflect the file-roller behavior.

description: updated
Pedro Villavicencio (pedro) wrote :
Changed in fileroller:
status: New → Unknown
Changed in file-roller:
importance: Undecided → Medium
status: Incomplete → Triaged
Changed in fileroller:
status: Unknown → New
Changed in file-roller:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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