Bug 387996 - Impossible to extract ZIP compressed with LZMA method
Summary: Impossible to extract ZIP compressed with LZMA method
Status: RESOLVED FIXED
Alias: None
Product: ark
Classification: Applications
Component: plugins (show other bugs)
Version: 18.12.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Ragnar Thomsen
URL:
Keywords:
: 428948 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-12-18 00:55 UTC by Patrick Silva
Modified: 2021-07-09 02:30 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
test archive (720.27 KB, application/zip)
2017-12-23 12:15 UTC, Patrick Silva
Details
amount of files/folders inside test archive and extracted by Ark (210.33 KB, image/png)
2020-04-03 10:36 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2017-12-18 00:55:39 UTC
I'm trying extract a ZIP LZMA file created with 7zip on windows system using Ark 17.12 on Arch Linux.

I get the error
"Compression method not supported"
Comment 1 Elvis Angelaccio 2017-12-23 10:38:33 UTC
Can you attach a test archive?
Comment 2 Patrick Silva 2017-12-23 12:15:53 UTC
Created attachment 109492 [details]
test archive
Comment 3 Christoph Feck 2018-01-01 17:52:42 UTC
Cannot reproduce. ZIP from comment #2 opened and extracted fine using Ark, 688 files in 2.937.177 bytes extracted.
Comment 4 Elvis Angelaccio 2018-01-02 12:58:09 UTC
IIRC only 7z (which is probably what Christoph is using as zip backend) can handle the LZMA compression method. 

If you disable the libzip plugin from the ark settings you should be able to extract the archive.
Comment 5 Patrick Silva 2018-01-02 13:05:16 UTC
(In reply to Elvis Angelaccio from comment #4)

> If you disable the libzip plugin from the ark settings you should be able to
> extract the archive.
You are right. Just tested on neon dev unstable.
Comment 6 Patrick Silva 2019-03-24 12:32:02 UTC
Still valid with ark 18.12.3 when libzip plugin is enabled in ark settings.
I don't get an error message anymore, but not all folders/files are extracted from the attached test file.

Operating System: Arch Linux 
KDE Plasma Version: 5.15.3
KDE Frameworks Version: 5.56.0
Qt Version: 5.12.2
Comment 7 Patrick Silva 2019-08-06 19:27:24 UTC
I can't extract the file from comment 2 with Ark 19.08 RC on Arch Linux even after disabling libzip plugin in Ark settings.
Comment 8 2wxsy58236r3 2020-04-03 04:25:00 UTC
Do you have Info-zip installed (pacman -Syu unzip) and its plugin enabled in Ark?

unzip should be able to handle this kind of archive.
Comment 9 Patrick Silva 2020-04-03 10:36:01 UTC
Created attachment 127231 [details]
amount of files/folders inside test archive and extracted by Ark

info-zip is enabled in Ark settings but Ark can not extract all content from the test archive in comment 2 and shows no error message. Attached screenshot shows the amount of files/folders inside test archive and extracted by Ark.
Ark 20.07.70 on Neon unstable edition.
Comment 10 Patrick Silva 2020-04-03 10:47:00 UTC
if libzip plugin is disabled, all content of archive is extracted.
Current situation could result in data loss if the user deletes the archive
before checking if its content was correctly extracted.
Comment 11 Ragnar Thomsen 2020-04-12 14:09:57 UTC
Git commit eeee61d2471f50bd4402f2e6c6f6f1612ebcb9ec by Ragnar Thomsen.
Committed on 12/04/2020 at 14:07.
Pushed by rthomsen into branch 'release/20.04'.

Forward errors from archive interface when batch-extracting

Errors from ExtractJob are not handled when called as a subjob of
BatchExtractJob. This can result in silently failing extractions.
Differential Revision: D28721

M  +1    -0    kerfuffle/jobs.cpp

https://commits.kde.org/ark/eeee61d2471f50bd4402f2e6c6f6f1612ebcb9ec
Comment 12 2wxsy58236r3 2020-07-27 14:21:28 UTC
The latest git master of libzip should now be able to handle the LZMA compression method.
Comment 13 2wxsy58236r3 2020-11-11 07:01:59 UTC
*** Bug 428948 has been marked as a duplicate of this bug. ***