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

7zip with password not supported #1882

Open
zaits07 opened this issue Oct 6, 2023 · 4 comments
Open

7zip with password not supported #1882

zaits07 opened this issue Oct 6, 2023 · 4 comments

Comments

@zaits07
Copy link

zaits07 commented Oct 6, 2023

fa2l can create .7z archive with password, but cannot extract files

Case A (protected files content, unprotected files list):
A.1 - on any file in home folder (~/mc.menu) press Shift-F1;
A.2 - in dialog append .7z to archive name (mc.7z);
A.3 - in dialog enter 123 in "Archive password" and "Reenter password" fileds, press Enter, archive created;
A.4 - enter to archive and try to view (F3) compressed file;
A.4.error - far2l error message "Archiver reported exit code 1", in console ;

$ 1"/usr/bin/far2l" --libexec "/usr/lib/far2l/Plugins/multiarc/plug/multiarc.far-plug-mb" "/tmp/far2l_3e8_0/FTM1fce.tmp/" BuiltinMain 7z e /home/gav/mc.7z "mc.menu"
7z Decoder 22.01 (x64) : Igor Pavlov : Public domain : 2022-07-15
Extracting mc.menu
ERROR: decoder doesn't support this archive

A.5 - try to extract (Shift-F2) compressed file, in extract dialog enter 123 to "Archive password" field;
A.5.error - same error;
A.6 - command "p7zip -d mc.7z" ask for password and successfully extract (but p7zip hangs after success extraction);

Case B (protected files content, protected files list):
B.1 - repeat steps A.1 .. A.3 but in dialog enter -mhe to "Switches" field;
B.2 - try to enter to archive or extract files from archive - far2l ignore Enter, Ctrl-PgDn, Shift-F2

Versions:
far2l: .dep package from ppa Version: 2.5.2+git202310031931.c7d34d09~ubuntu22.04.1
OS: Ubuntu 22.04.3 LTS
p7zip: 16.02 from ubuntu repo

@zaits07
Copy link
Author

zaits07 commented Oct 6, 2023

p7zip success extraction output:

p7zip -d ./mc.7z 

7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=ru_RU.UTF-8,Utf16=on,HugeFiles=on,64 bits,8 CPUs Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz (306A9),ASM,AES-NI)

Scanning the drive for archives:
1 file, 775 bytes (1 KiB)

Extracting archive: ./mc.7z

Enter password (will not be echoed):
--
Path = ./mc.7z
Type = 7z
Physical Size = 775
Headers Size = 183
Method = LZMA2:12 7zAES
Solid = -
Blocks = 1

Everything is Ok

Size:       1169
Compressed: 775

@unxed
Copy link
Contributor

unxed commented Oct 6, 2023

maybe process such cases using custom.ini? command line 7z already used there

@elfmz
Copy link
Owner

elfmz commented Oct 15, 2023

Plugin configuration/Archive support/Command lines/7z - remove ^ from beginning of 1st commands:
image
this will force far2l to use external 7z instead of builtin for extraction

@zaits07
Copy link
Author

zaits07 commented Oct 16, 2023

I removed "^" exactly as you recommended.
Case A (protected files content, unprotected files list) - works properly;
Case B (-mhe switch protected files content, protected files list) - not works, far2l ignore Enter, Ctrl-PgDn, Shift-F2.

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

No branches or pull requests

3 participants