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 392994 - extracting rar with password
extracting rar with password
Status: RESOLVED FIXED
Product: file-roller
Classification: Applications
Component: general
2.16.x
Other Linux
: Normal normal
: ---
Assigned To: Paolo Bacchilega
file-roller-maint
Depends on:
Blocks:
 
 
Reported: 2007-01-05 02:22 UTC by Pablo Castellano (IRC: pablog)
Modified: 2009-07-26 07:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
shell script to reproduce (827 bytes, application/x-shellscript)
2007-01-05 02:25 UTC, Pablo Castellano (IRC: pablog)
Details
rarbug_v2.sh (862 bytes, application/x-sh)
2009-07-25 09:09 UTC, Jakob Unterwurzacher
Details

Description Pablo Castellano (IRC: pablog) 2007-01-05 02:22:44 UTC
This is a weird bug. Below I include a script to reproduce.
When you extract a rar file with password means of "Right Click->Extract here", fileroller first does something like extracting and then it asks for the password and extracts files correctly. So it takes the double of time. Imagine extracting a dvd iso ^^. I think this bug continues in the last version because I didn't see any bug report about it.


---BOF---
echo "Proof of concept. Bug tested in file-roller 2.16.1"

#First we create 5 files
#Size is 20MB so you can refresh nautilus and see while they are extracted and deleted
echo "Creating 5 random files..."
dd if=/dev/urandom of=shit1 bs=20M count=1
dd if=/dev/urandom of=shit2 bs=20M count=1
dd if=/dev/urandom of=shit3 bs=20M count=1
dd if=/dev/urandom of=shit4 bs=20M count=1
dd if=/dev/urandom of=shit5 bs=20M count=1

#We pack them using password "test"
#I tried zip and rar. Only rar fails, maybe others?
#zip -1 -P test buggy shit*
echo "Packing them..."
rar a buggy shit* -ptest -m0


echo "Now try to uncompress buggy.rar with file-roller. right click button -> Extract here"
#file-roller extracts and deletes them one by one and when it has finished, now it ask for password and extracts correctly
#rm shit* buggy* -fr
---EOF---
Comment 1 Pablo Castellano (IRC: pablog) 2007-01-05 02:25:17 UTC
Created attachment 79422 [details]
shell script to reproduce
Comment 2 Jakob Unterwurzacher 2009-07-25 09:09:11 UTC
Created attachment 139196 [details]
rarbug_v2.sh

Updated version of the script. Changes:
1) Fixed two wrapped comments
2) Set rar compression level to 1 instead of 0 to make it more painful and realistic

I can obiously confirm this. Note that i noticed when i did extract a dvd iso ;)
Comment 3 Paolo Bacchilega 2009-07-26 07:38:29 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.