Bug 459613 - [unarchiver] Cannot open password-protected RAR archives
Summary: [unarchiver] Cannot open password-protected RAR archives
Status: CONFIRMED
Alias: None
Product: ark
Classification: Applications
Component: plugins (show other bugs)
Version: 22.08.0
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Elvis Angelaccio
URL:
Keywords:
: 454320 458523 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-09-24 18:37 UTC by Sujal
Modified: 2022-09-25 20:31 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
error preview (34.38 KB, image/png)
2022-09-24 18:38 UTC, Sujal
Details
Example of header-encrypted RAR4 archive (6.38 KB, application/vnd.rar)
2022-09-25 13:34 UTC, Elvis Angelaccio
Details
Example of header-encrypted RAR5 archive (5.81 KB, application/vnd.rar)
2022-09-25 13:34 UTC, Elvis Angelaccio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sujal 2022-09-24 18:37:18 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. I got a ZIP archive and it is password-protected.
2. The ZIP is file-name protected ie I can't even see folder tree.
3. I type the correct password and it goes saying: "Loading the archive ‘/run/media/****/fire/6912T5*********7vU.rar’ failed with the following error:
Wrong password."

OBSERVED RESULT
Loading the archive ‘/run/media/****/fire/6912T5*********7vU.rar’ failed with the following error:
Wrong password."

EXPECTED RESULT
I opened the same file with the password on peazip and it worked without any 'wrong password' errors. It has happened to me before for .rar files before too and they also worked on peazip providing the password.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Plasma 5.25.5, Kernel 5.4.212-1-MANJARO
(available in About System)
Qt Version: QT5? I don't know

ADDITIONAL INFORMATION
All the password-protected files work on peazip. I got a screenshot here: https://images4.imagebam.com/4e/b7/c3/MEDTUS2_o.png
Comment 1 Sujal 2022-09-24 18:38:52 UTC
Created attachment 152386 [details]
error preview
Comment 2 Sujal 2022-09-25 06:34:12 UTC
SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Plasma 5.25.5, Kernel 5.4.212-1-MANJARO
(available in About System)
Qt Version: 5.15.5
KDE Frameworks Version: 5.97.0
OS: Manjaro Linux
Comment 3 Elvis Angelaccio 2022-09-25 13:34:18 UTC
Created attachment 152415 [details]
Example of header-encrypted RAR4 archive

Password = asdasd
Comment 4 Elvis Angelaccio 2022-09-25 13:34:37 UTC
Created attachment 152416 [details]
Example of header-encrypted RAR5 archive

Password = asdasd
Comment 5 Elvis Angelaccio 2022-09-25 13:45:26 UTC
Looks like something broke in theunarchiver, I filed an issue upstream: https://github.com/MacPaw/XADMaster/issues/148

As temporary workaround from ark settings you can disable the Unarchiver plugin and enable the RAR plugin (you'll also need to install unrar on your system).
Comment 6 Sujal 2022-09-25 15:02:33 UTC
(In reply to Elvis Angelaccio from comment #5)
> Looks like something broke in theunarchiver, I filed an issue upstream:
> https://github.com/MacPaw/XADMaster/issues/148
> 
> As temporary workaround from ark settings you can disable the Unarchiver
> plugin and enable the RAR plugin (you'll also need to install unrar on your
> system).

Thanks for the information. Your method works. Do I need to switch back to unarchiver when bug resolved? As you said temporarily.

And, if you don't mind, how did you create a .rar archive in linux (your machine?) did you use a GUI app or the command line. If you used command line then probably there isn't any GUI for this file type. I heard its proprietary i.e., because.
Comment 7 Elvis Angelaccio 2022-09-25 20:17:47 UTC
(In reply to Sujal from comment #6)
> (In reply to Elvis Angelaccio from comment #5)
> > Looks like something broke in theunarchiver, I filed an issue upstream:
> > https://github.com/MacPaw/XADMaster/issues/148
> > 
> > As temporary workaround from ark settings you can disable the Unarchiver
> > plugin and enable the RAR plugin (you'll also need to install unrar on your
> > system).
> 
> Thanks for the information. Your method works. Do I need to switch back to
> unarchiver when bug resolved? As you said temporarily.
> 
> And, if you don't mind, how did you create a .rar archive in linux (your
> machine?) did you use a GUI app or the command line. If you used command
> line then probably there isn't any GUI for this file type. I heard its
> proprietary i.e., because.

The RAR plugin is better but requires non-free binaries (unrar and rar).

You can create a rar archive with Ark itself, as long as you have the proprietary rar binary installed.
Comment 8 Elvis Angelaccio 2022-09-25 20:27:33 UTC
*** Bug 458523 has been marked as a duplicate of this bug. ***
Comment 9 Elvis Angelaccio 2022-09-25 20:31:31 UTC
*** Bug 454320 has been marked as a duplicate of this bug. ***