The "ark" don't extract zip files

Maybe this is of interest to the people who make the “ark” extractor.

The Brazilian government is providing the 2018 Income Tax programs in zipped folders. Here is the link to download some of the files:


https://downloadirpf.receita.fazenda.gov.br/irpf/2018/carne-leao/LEAO2018v1.0.zip

When I extract a zip folder using the “extract archive here” option or whatever, the files appear with their correct names, but completely empty.

If I open the zip folder directly with “ark”, it will open a screen where files appear that look full, but if I copy them to another folder the files are empty.

If I do the extraction on an old machine with OpenSuse 13.2 the extraction is done successfully

To me this looks that you have proven this to be a bug (because it works on 13.2).

The best is to file a bug report on https://bugzilla.opensuse.org/index.cgi (same username and password as here).

And please post the link to the report here so interested people can see what happens and add information to it.

Disable the p7zip plugin in Ark’s settings or uninstall p7zip and it should work.

It seems to be a problem in p7zip:

$ 7z x  LEAO2018v1.0.zip        

7-Zip [64] 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18
p7zip Version 9.20 (locale=de_AT.UTF-8,Utf16=on,HugeFiles=on,2 CPUs)

Processing archive: LEAO2018v1.0.zip

Extracting  LEAO2018/RFB.ico     Unsupported Method
Extracting  LEAO2018/offline.png     Unsupported Method
Extracting  LEAO2018/online.png     Unsupported Method
Extracting  LEAO2018/lib/batik-awt-util.jar     Unsupported Method
Extracting  LEAO2018/lib/batik-dom.jar     Unsupported Method
Extracting  LEAO2018/lib/batik-svg-dom.jar     Unsupported Method
Extracting  LEAO2018/lib/batik-svggen.jar     Unsupported Method
Extracting  LEAO2018/lib/batik-util.jar     Unsupported Method
Extracting  LEAO2018/lib/batik-xml.jar     Unsupported Method
Extracting  LEAO2018/lib/commons-beanutils-1.7.jar     Unsupported Method
Extracting  LEAO2018/lib/commons-collections-3.2.1.jar     Unsupported Method
Extracting  LEAO2018/lib/commons-digester-1.8.jar     Unsupported Method
Extracting  LEAO2018/lib/commons-logging-1.0.2.jar     Unsupported Method
Extracting  LEAO2018/lib/forms-1.0.3.jar     Unsupported Method
Extracting  LEAO2018/lib/foxtrot-core-4.0.jar     Unsupported Method
Extracting  LEAO2018/lib/freesans.jar     Unsupported Method
Extracting  LEAO2018/lib/icepdf-core.jar     Unsupported Method
Extracting  LEAO2018/lib/icepdf-viewer.jar     Unsupported Method
Extracting  LEAO2018/lib/iText-2.1.0.jar     Unsupported Method
Extracting  LEAO2018/lib/jasperreports-3.7.2.jar     Unsupported Method
Extracting  LEAO2018/lib/jdt-compiler-3.1.1.jar     Unsupported Method
Extracting  LEAO2018/lib/jhall.jar     Unsupported Method
Extracting  LEAO2018/lib/looks-1.3.1.jar     Unsupported Method
Extracting  LEAO2018/lib/ppgd-formatosext-4.3.0.jar     Unsupported Method
Extracting  LEAO2018/lib/ppgd-gui-beans-4.3.0.jar     Unsupported Method
Extracting  LEAO2018/lib/ppgd-icones-4.0.jar     Unsupported Method
Extracting  LEAO2018/lib/ppgd-infraestrutura-4.3.0.jar     Unsupported Method
Extracting  LEAO2018/lib/ppgd-negocio-4.3.0.jar     Unsupported Method
Extracting  LEAO2018/lib/ppgd-persistencia-4.3.0.jar     Unsupported Method
Extracting  LEAO2018/lib/ppgd-pgd-utils-4.3.0.jar     Unsupported Method
Extracting  LEAO2018/lib/serpro.jar     Unsupported Method
Extracting  LEAO2018/lib/swing-layout-1.0.4.jar     Unsupported Method
Extracting  LEAO2018/lib/swingx-1.6.jar     Unsupported Method
Extracting  LEAO2018/lib/tinylaf.jar     Unsupported Method
Extracting  LEAO2018/lib/xalan.jar     Unsupported Method
Extracting  LEAO2018/PgdCarneLeao.jar     Unsupported Method
Extracting  LEAO2018/Leia_me.htm     Unsupported Method
Extracting  LEAO2018/help/AjudaCLEAO.pdf     Unsupported Method
Extracting  LEAO2018/help/.~lock.AjudaCLEAO.odt#     Unsupported Method
Extracting  LEAO2018/LEAO2018.exe     Unsupported Method
Extracting  LEAO2018/exec.bat     Unsupported Method
Extracting  LEAO2018/exec.sh     Unsupported Method

Sub items Errors: 42


You’re right.
I removed the p7zip and now the “ark” works fine.
Thank you very much.

FWIW, I tried a few ZIP archives I found on my hard disk, and everything worked fine without disabling p7zip.

So it’s not broken in general at least…

I also have other zip files that came from other sources and the extraction worked very well.
The one that does not work is the zip file that the Brazilian government is currently providing
However, I can open this file with OpenSuse 13.2
But it was not possible to open with 42.3 with p7zip installed

So, is this a solution or a bypass?

In the latter case, a bug report seems still be be something that should be made if we ever want the root cause solved.

Yes, because the old Ark in 13.2 didn’t support p7zip at all.

Btw, apparently the main problem is that the p7zip (version 9.20) in Leap 42.3 is just too old.
I tried with the latest 16.02 now (that will be in Leap 15.0), and I was able to successfully open the mentioned file.

Although, something seems to be not completely right with the file itself either, Ark warned about a corrupt archive (it allowed to open it anyway though), and 7z (16.02) prints this:

$ 7z x LEAO2018v1.0.zip
7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=de_AT.UTF-8,Utf16=on,HugeFiles=on,64 bits,2 CPUs Intel(R) Pentium(R) 4 CPU 2.80GHz (F49),ASM)

Scanning the drive for archives:
1 file, 16366985 bytes (16 MiB)

Extracting archive: LEAO2018v1.0.zip

ERRORS:
Headers Error

--
Path = LEAO2018v1.0.zip
Type = zip
ERRORS:
Headers Error
Physical Size = 16366985



Archives with Errors: 1

Open Errors: 1


Sounds like 388423 – [p7zip] ark says zip "archive corrupt" but both "zip -F" and "unzip -t" find no problem, which is considered to be an “upstream issue”:

It’s pretty clear that a main issue is clearly with 7z library or a wrong usage of it by Confluence.
Nothing can be (or should be) done from Ark side.

But, as mentioned, it does successfully open/extract it anyway, despite the “error”.

Well, it doesn’t bother me… :wink:

Strictly speaking it is a workaround I’d say, but should be fine unless one would want to open a 7z archive… (which Ark in openSUSE 13.2 didn’t support at all anyway)

In the latter case, a bug report seems still be be something that should be made if we ever want the root cause solved.

But if the root cause is that the zip file is “broken”, an openSUSE bug report won’t help either…

It is “fixed” somehow in TW (and Leap 15.0) though, because the newer p7zip does open the file.
I have no idea whether it would be considered to update p7zip in Leap 42.3, that would be up to its maintainers and the maintenance team.
Normally upgrades to newer versions are not done in released versions. (with certain exceptions if there are good reasons to do it, not sure if that would qualify)

PS, forgot to mention; you can get the latest p7zip for Leap 42.3 as well in the “Archiving” repo:
https://software.opensuse.org//download.html?project=Archiving&package=p7zip