! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Support password protected archives
Status:
RESOLVED: WONTFIX
Product:
Squeeze
Component:
squeeze

Comments

Description Bj 2007-03-28 15:41:40 CEST
i recently downloaded a password protected .rar file, and i could browse the content in squeeze (latest svn, 25325) but when i tried to open a file from that archive within squeeze, it segfaulted.

when i tried to extract the archive with the t-a-p, the new directory was created, but then squeeze died again.

there should be a dialog that asks for the password when extracting a file, with a checkbox to use that password for all files from that archive. the password should be saved during the whole squeeze session, individually for each archive, as you might have more than one protected archive opened in tabs, so you don't have to retype the password again, when you open another file from within squeeze. of course the password should only be saved, if it was correct. if it wasn't, you should be asked another password.
this password dialog must of course also pop up, when using the -e switch, while it can be integrated into the extract dialog, when using the -x switch.
when you successfully opened a file in a session from within squeeze, then the correct password should already be pre-entered in the extract dialog, when the user opens it afterwards.

and a little lock icon in the lower right corner of the status bar of squeeze's main window should be shown, if the password is protected.

those are all the neccessary gui parts, i can think of atm for protected archives, but of course i might have missed some things ;)
Comment 1 Stephan Arts editbugs 2007-03-28 21:11:06 CEST
Thanks for the report, i kind of have forgotten about that.

Could you attach a backtrace?
Because squeeze should report an error instead of doing a segfault.

One thing though, of which i am uncertain, different files inside a single archive can be protected with a different password. How to handle that?
Comment 2 Samuli Suominen 2007-03-29 14:50:10 CEST
Opened encrypted .rar, it showed the filelist as expected  but when trying to extract it I got -> 

** (squeeze:17844): DEBUG: /home/drac/pictures
** (squeeze:17844): DEBUG: application/x-rar
 
** (squeeze:17844): DEBUG: executing: unrar v '/home/drac/pictures/projekti.rar'
 
 
(squeeze:17844): GLib-CRITICAL **: g_io_channel_read_line: assertion `str_return != NULL' failed
 
(squeeze:17844): GLib-CRITICAL **: g_io_channel_read_line: assertion `str_return != NULL' failed
** (squeeze:17844): DEBUG: COMMAND TERMINATED
** (squeeze:17844): DEBUG: executing: unrar x -y '/home/drac/pictures/projekti.rar'   'projekti.png' /home/drac/pictures/projekti
 
** (squeeze:17844): DEBUG: file clicked

And notice that filetype is not supported or sth
After trying a second time extracting it, the notice 
didn't show up anymore. It only created the empty directory I was 
supposed to extract it to. But no segfault.

This is r25330
Comment 3 Bj 2007-03-29 16:05:13 CEST
you're right, it doesn't segfault here aswell. sorry for the wrong information.
Comment 4 Stephan Arts editbugs 2007-03-29 21:17:06 CEST
Created attachment 1068 
drac's back-trace of segfault (yay)
Comment 5 Stephan Arts editbugs 2007-04-02 10:06:41 CEST
I have added a 'progress' dialog to rev 25359.
(it is only used with extract for now, but could also be used for add).
Comment 6 Stephan Arts editbugs 2007-04-02 15:25:25 CEST
Changed summary, critical warnings are solved. issue that remains is that password-protected archives are not supported at all.
Comment 7 Peter de Ridder editbugs 2007-04-02 20:25:18 CEST
Password support will not be implemented for now.
There is not enough support for this in either libsqueeze or the user interface.
We will look into this for squeeze version 0.3
Comment 8 Kamchybek Jusupov 2007-04-16 05:42:38 CEST
Password support should be also for new archives, not only extracting existing ones. Also,  it should be able to "update" archive with password, no other changes (no adding/removing files, etc).
Comment 9 Skunnyk editbugs 2019-08-18 22:39:42 CEST
squeeze is not maintained anymore, closing.

Bug #3072

Reported by:
Bj
Reported on: 2007-03-28
Last modified on: 2019-08-18

People

Assignee:
Stephan Arts
CC List:
1 user

Version

Version:
unspecified

Attachments

drac's back-trace of segfault (yay) (2.34 KB, text/plain)
2007-03-29 21:17 CEST , Stephan Arts
no flags

Additional information