<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>347209</bug_id>
          
          <creation_ts>2015-05-05 08:16:04 +0000</creation_ts>
          <short_desc>Ark creates invalid zip file from context menu</short_desc>
          <delta_ts>2015-05-16 22:23:08 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>ark</product>
          <component>general</component>
          <version>2.19</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>340456</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Amichai Rothman">amichai2</reporter>
          <assigned_to name="Raphael Kubo da Costa">rakuco</assigned_to>
          <cc>ferry.toth</cc>
    
    <cc>mahe</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1516237</commentid>
    <comment_count>0</comment_count>
    <who name="Amichai Rothman">amichai2</who>
    <bug_when>2015-05-05 08:16:04 +0000</bug_when>
    <thetext>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&apos;t open them, and only when I recreated the zip manually from command line using the &apos;zip&apos; 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&apos;t sure if this is an Ark bug or perhaps Dolphin&apos;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 &apos;Compress&apos; -&gt; &apos;As ZIP Archive&apos;. An archive is created with the same name as the original file, plus a &apos;.zip&apos; extension.
4. Run &apos;file &lt;filename&gt;&apos; from command line. It identifies the files as &apos;gzip compressed data&apos; rather than &apos;Zip archive data&apos; 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 &apos;PK&apos;, 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1516541</commentid>
    <comment_count>1</comment_count>
    <who name="Mahe">mahe</who>
    <bug_when>2015-05-06 11:46:20 +0000</bug_when>
    <thetext>This is an issue with kubuntu&apos;s packaging, see https://bugs.launchpad.net/ubuntu/+source/ark/+bug/1388532
as per https://bugs.kde.org/show_bug.cgi?id=341078</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1516682</commentid>
    <comment_count>2</comment_count>
    <who name="Amichai Rothman">amichai2</who>
    <bug_when>2015-05-06 19:47:24 +0000</bug_when>
    <thetext>Thanks - will track it there. I suppose you can close it here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1516729</commentid>
    <comment_count>3</comment_count>
    <who name="Ferry">ferry.toth</who>
    <bug_when>2015-05-06 21:45:36 +0000</bug_when>
    <thetext>It looks like this is solved in vivid, but I&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1519381</commentid>
    <comment_count>4</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2015-05-16 22:23:08 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 340456 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>