Bug 459717

Summary: cli7zplugin: not working with latest upstream 7-zip
Product: [Applications] ark Reporter: Alexander <youlkonis>
Component: pluginsAssignee: Elvis Angelaccio <elvis.angelaccio>
Status: RESOLVED FIXED    
Severity: normal CC: aacid, rthomsen6
Priority: NOR    
Version First Reported In: 22.08.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Alexander 2022-09-26 23:56:28 UTC
SUMMARY
cli7zplugin(kerfuffle_cli7z) won't work with upstream 7-zip-full(22.01-3 from AUR) due to "7z l -slt" returning data that is not delimited by any of the currently implemented delimiters(see https://github.com/KDE/ark/blob/master/plugins/cli7zplugin/cliplugin.cpp#L125-L127) and delimited by \n instead.

STEPS TO REPRODUCE
1. Open any .7z file(password protection doesn't matter)
2. Ark reports "The archive is empty or Ark could not open its content." in GUI and "ark.part: No entry listed by the plugin" in stdout.

EXPECTED RESULT
Ark displays the contents of the archive.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux x86_64 (Linux 5.19.11-arch1-1)
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6

ADDITIONAL INFORMATION
Full logs(7z l -slt & ark) and test file upon request.
Comment 1 Elvis Angelaccio 2022-09-27 21:55:34 UTC
(In reply to Alexander from comment #0)
> ADDITIONAL INFORMATION
> Full logs(7z l -slt & ark) and test file upon request.

Yes, please provide a test archive and the full output of "7z l -slt" from command line. Thanks.
Comment 2 Alexander 2022-09-28 02:31:59 UTC
(In reply to Elvis Angelaccio from comment #1)
> (In reply to Alexander from comment #0)
> > ADDITIONAL INFORMATION
> > Full logs(7z l -slt & ark) and test file upon request.
> 
> Yes, please provide a test archive and the full output of "7z l -slt" from
> command line. Thanks.

I'm not very familiar with the tools used to upload logs & such, so I made a github repo with all the necessary files, this should be sufficient: https://github.com/Alluseri/ark-459717
Comment 3 Alexander 2022-10-15 09:11:28 UTC
Fixed in the latest build