Bug 347209 - Ark creates invalid zip file from context menu
Summary: Ark creates invalid zip file from context menu
Status: RESOLVED DUPLICATE of bug 340456
Alias: None
Product: ark
Classification: Applications
Component: general (show other bugs)
Version: 2.19
Platform: Ubuntu Linux
: NOR major
Target Milestone: ---
Assignee: Raphael Kubo da Costa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-05 08:16 UTC by Amichai Rothman
Modified: 2015-05-16 22:23 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Amichai Rothman 2015-05-05 08:16:04 UTC
When creating a zip file using context menu, it creates an invalid zip archive which actually appears to be some sort of gzip file instead.

More than once I sent these zips to Windows users, who replied that they can't open them, and only when I recreated the zip manually from command line using the 'zip' utility were they able to open it. This time around I decided to delve a bit deeper and find the culprit. For an archive utility to create invalid zip archives (the most popular compressed format?) by default, is a pretty major bug in my opinion.

I wasn't sure if this is an Ark bug or perhaps Dolphin's or some other component, but the same thing happens when using Ark GUI itself to create a new zip archive.

Reproducible: Always

Steps to Reproduce:
1. Open Dolphin.
2. Right-click on a file to show context menu.
3. Select 'Compress' -> 'As ZIP Archive'. An archive is created with the same name as the original file, plus a '.zip' extension.
4. Run 'file <filename>' from command line. It identifies the files as 'gzip compressed data' rather than 'Zip archive data' as it does with a valid zip archive.
5. Use Okteta or hexdump to look at the file header. The first two bytes are NOT 'PK', which they would be in a valid zip archive.

Actual Results:  
An invalid zip archive is created.

Expected Results:  
A valid zip archive should be created.
Comment 1 Mahe 2015-05-06 11:46:20 UTC
This is an issue with kubuntu's packaging, see https://bugs.launchpad.net/ubuntu/+source/ark/+bug/1388532
as per https://bugs.kde.org/show_bug.cgi?id=341078
Comment 2 Amichai Rothman 2015-05-06 19:47:24 UTC
Thanks - will track it there. I suppose you can close it here.
Comment 3 Ferry 2015-05-06 21:45:36 UTC
It looks like this is solved in vivid, but I'm not sure as I have ark_15.04.0-0ubuntu1~ubuntu15.04~ppa1_amd64 from Kubuntu Backport PPA.

ark -v reports:
Qt: 4.8.6
KDE Development Platform: 4.14.7
Ark: 2.19

I tested this by using dolphin to zip a file and then used file filename.zip to verify the type. I did not test the file by f.i. using winzip in windows.
Comment 4 Christoph Feck 2015-05-16 22:23:08 UTC

*** This bug has been marked as a duplicate of bug 340456 ***