Summary: | Ark asking for password, says it isn't correct, but it is! | ||
---|---|---|---|
Product: | [Applications] ark | Reporter: | David Watzke <david> |
Component: | general | Assignee: | Harald Hvaal <metellius> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | rakuco |
Priority: | NOR | ||
Version: | 2.6 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
Testcase: Password-protected RAR file
Testcase: Password-protected ZIP file Patch for the RAR extraction bug |
Description
David Watzke
2005-10-26 22:35:49 UTC
You are reporting 2 seperate bugs, you should fill 2 bug reports Yes, but it's boring filling 100x the same... :( Sorry. Hi! Could you please provide me password-protected RAR archives so that I can try to reproduce and fix this bug? I haven't any password-protected RAR at the moment. :-( You can create it with app-arch/rar. :-) Problem was with all this archives, so I think with rar (tool) too. Try password with dots. :-) I may be wrong, but rar.cpp doesn't seem to contain any code for handling passwords. zip.cpp contains a line like this if ( !m_password.isEmpty() ) *kp << "-P" << m_password; but I could not find a corresponding line of code in rar.h. It should be possible to just copy it over from zip.cpp and replace the -P for -p, I didn't try it but this might be the cause. BTW: When creating a password-protected ZIP file, zip wants a space between -P and the password, when decompressing it doesn't care for the space. rar and unrar need the password directly after -p. I created two password-protected files and added them as attachments. Created attachment 13463 [details]
Testcase: Password-protected RAR file
Password: test
Created attachment 13464 [details]
Testcase: Password-protected ZIP file
Password: test
Created attachment 13465 [details]
Patch for the RAR extraction bug
Patch against SVN kdeutils Branch 3.5, the solution for the RAR problem was
very simple. I still have problems extracting password protected ZIP files (ark
starts using 100% CPU after the "Destination Folder" Dialog) but it seems to
work when run through the KDevelop Debugger. Strange.
Yes, maybe simple, but not working for me. I used same way as for patch xorg-server-0.99.3-r1 and kopete- - ebuild ... unpack, patch it, ebuild ... compile, install and qmerge... and RAR want's password, okay, type > test < and wanna password again and again... Strange, I have it running on two different Installations of Ubuntu Breezy. Did you check out kdeutils from KDE SVN, apply the patch to ark, compile it and then make install? No, maybe this is the problem. I don't want full kdeutils - I'm using single programs - kde-base/ark. SVN commit 517553 by charis: Patch by Simon Raffeiner, fixes the extraction on password protected RARs BUG: 115152 CCMAIL: sturmflut@lieberbiber.de M +1 -1 arch.cpp M +1 -1 rar.cpp --- branches/KDE/3.5/kdeutils/ark/arch.cpp #517552:517553 @@ -166,7 +166,7 @@ unarchFileInternal(); // try to extract the file again with a password return; } - m_password = ""; + m_password = ""; emit sigExtract( false ); delete _kp; _kp = m_currentProcess = 0; --- branches/KDE/3.5/kdeutils/ark/rar.cpp #517552:517553 @@ -225,7 +225,7 @@ *kp << m_unarchiver_program << "x"; if ( !m_password.isEmpty() ) - *kp << "-p=" + m_password; + *kp << "-p" + m_password; if ( !ArkSettings::extractOverwrite() ) { |