Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rar + password producing UNREADABLE files #23

Open
sergeng opened this issue Feb 2, 2023 · 5 comments
Open

Rar + password producing UNREADABLE files #23

sergeng opened this issue Feb 2, 2023 · 5 comments
Assignees

Comments

@sergeng
Copy link

sergeng commented Feb 2, 2023

Describe the bug
when i mount a rar achive with password and provide the correct password in the Archive tab
the mount point is created with the files inside BUT they are unreadable
I assume the rar password decryption is buggy
zip archive password decryption works flawless

Configration (please complete the following information):

OS: ubuntu 20.04
Version of library:
To Reproduce
Upload a rar file with password
type the password in the archive tab
mount the rar file via context menu

Expected behavior
should decrypt and mount with password given

@rotdrop
Copy link
Owner

rotdrop commented Mar 1, 2023

Sorry for not coming back to this earlier. Is it possible for you to provide a rar-archive which does not work s.t. we have something to work on? Best something very small but with password protection.

@rotdrop
Copy link
Owner

rotdrop commented Mar 1, 2023

From the support matrix of unified-archive

https://github.com/wapmorgan/UnifiedArchive/blob/master/docs/Drivers.md#full-support-matrix

password protected files should in principle work. I have generated a simplistic rar-archive with the password "foobar" which actually cannot properly extracted. I need to investigate further.

@rotdrop
Copy link
Owner

rotdrop commented Mar 1, 2023

I think that this commit should fix this issue: 734910a

@rotdrop
Copy link
Owner

rotdrop commented Mar 1, 2023

BTW, the problem were not the RAR-archives, the problem was that the app passed the encrypted password to the archive backend when staying on the files view. Later reloading the page should in principle have worked. Anyhow, the passphrase handling was buggy.

@rotdrop rotdrop self-assigned this Mar 1, 2023
@rotdrop
Copy link
Owner

rotdrop commented Mar 23, 2023

May I close this issue? Does it work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants