Bug 423068 - ark does not open a zip with comment & extra bytes at the beginning
Summary: ark does not open a zip with comment & extra bytes at the beginning
Status: RESOLVED NOT A BUG
Alias: None
Product: ark
Classification: Applications
Component: general (other bugs)
Version First Reported In: 19.04.0
Platform: Mageia RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Elvis Angelaccio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-16 19:26 UTC by JC Cardot
Modified: 2020-07-05 14:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
zip file (934.15 KB, application/zip)
2020-06-16 19:26 UTC, JC Cardot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description JC Cardot 2020-06-16 19:26:59 UTC
Created attachment 129429 [details]
zip file

SUMMARY


STEPS TO REPRODUCE
1. open the attachment in ark 

OBSERVED RESULT
Error message: Le chargement de l'archive /mnt/data/Musique/mod/v-pulsar.zip a échoué avec l'erreur suivante :
Impossible d'ouvrir l'archive : Zip archive inconsistent

EXPECTED RESULT
the zip file opens and files are listed

SOFTWARE/OS VERSIONS
Distro: Mageia 7
Linux/KDE Plasma: 
Operating System: Mageia 7
KDE Plasma Version: 5.15.4
KDE Frameworks Version: 5.57.0
Qt Version: 5.12.6
Kernel Version: 5.6.14-desktop-2.mga7
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-4770 CPU @ 3.40GHz
Memory: 7,7 Gio

ADDITIONAL INFORMATION

[fred@localhost mod]$ unzip -t v-pulsar.zip 
Archive:  v-pulsar.zip
This file was download from:

              T H E   S I G H T   &   S O U N D   B B S
������������������������������������������������������������������ͻ
� � World's Largest� GRAVIS ULTRASOUND Support� BBS                �
� � Over 4 Gigabytes on-line� of the newest and coolest files      �
� � Support for many different Sound Cards                         �
� � Huge areas for Music files (MOD/S3M/XM/ULT/MTM/MIDI/others)    �
� � Huge areas full of ANSI/VGA/SVGA ART packs!                    �
�    +support for artists (Dark/iCE/ACiD/etc..)                    �
� � 9600 -> 28.8 Users only!                                       �
� � Member of TNC\FidoNet\Syndicate Net\EclipseNet\YO!Net          �
� � FREE INTERNET/NEWSGROUP ACCESS!                                �
�   So Call TODAY!                   and YES! It's TOTALY FREE!!!  �
���������������������������������������������������� 416-665-6908 ͼ
      This file has passed all tests under THcaution:  zipfile comment truncated
warning [v-pulsar.zip]:  121185 extra bytes at beginning or within zipfile
  (attempting to process anyway)
    testing: LOVER-LO.XM              OK
    testing: FILE_ID.DIZ              OK
    testing: VSL.APP                  OK
    testing: VSL.NFO                  OK
No errors detected in compressed data of v-pulsar.zip.
[fred@localhost mod]$ zipinfo -l v-pulsar.zip 
Archive:  v-pulsar.zip
Archive size: 956565 bytes; Members: 4
warning [v-pulsar.zip]:  121185 extra bytes at beginning or within zipfile
  (attempting to process anyway)
-rw-a---    2.0 fat  1614654 b-   830388 defX 96-May-23 21:23 LOVER-LO.XM
-rw-a---    2.0 fat      321 t-      189 defX 96-May-23 21:39 FILE_ID.DIZ
-rw-a---    2.0 fat     4630 t-     1264 defX 96-May-15 09:25 VSL.APP
-rw-a---    2.0 fat     7045 t-     2167 defX 96-May-23 21:29 VSL.NFO
Members: 4; Bytes uncompressed: 1626650, compressed: 834008, 48.7%
Directories: 0, Files: 4, Links: 0
Comment 1 2wxsy58236r3 2020-07-04 02:19:53 UTC
Please disable Libzip plugin in Ark Settings and try again.
Comment 2 JC Cardot 2020-07-04 11:58:30 UTC
The work around is ok, thanks.

So why is libzip activated by default? Why does it even exists if ark if able to manage zip files without it?

The bug should be sent to libzip, where is their bugzilla?

TIA
Comment 3 2wxsy58236r3 2020-07-05 06:52:22 UTC
You can report the bug at https://github.com/nih-at/libzip/issues .
Comment 4 JC Cardot 2020-07-05 12:15:06 UTC
Thanks done, and it appears the zip file is quite corrupted (see https://github.com/nih-at/libzip/issues/186).
changing status as RESOLVED.
Comment 5 2wxsy58236r3 2020-07-05 14:47:38 UTC
Regarding your comment on GitHub:
> Ark without libzip (I don't know which lib it uses in this case) sees the other zip file.

If you use Ark to open that file and see PULSAR.MDL, p7zip is being used. Otherwise (i.e. you see LOVER-LO.XM), Info-ZIP is being used.

---------------

You may want have a look at Bug 411074. Both p7zip and Info-ZIP warn the user that the file is corrupted, but Ark seems to ignore the warning.