<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>unable to open zip files on Mac OS X</title> 
  <pubDate>Fri, 10 Apr 2026 09:35:42 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/4670</link> 
  <atom:link rel="self" type="application/rss+xml" title="unable to open zip files on Mac OS X" href="https://bugs.horde.org/ticket/4670/rss" /> 
  <description>unable to open zip files on Mac OS X</description> 
 
   
   
  <item> 
   <title>The &quot;Download all attachments in zip file&quot; option sometimes </title> 
   <description>The &quot;Download all attachments in zip file&quot; option sometimes results in a file that cannot be opened by the default zip handler (BOMArchiveHelper) on Mac OS X. Zipinfo reports the contents of the file properly. The file can be &quot;repaired&quot; using the following steps:

zipnote file.zip &gt;tmp

zipnote -w file.zip &lt;tmp

In doing this we noted that 12 bytes per file get dropped from the archive.

The mailing list reports two other zip handlers having problems with IMP generated zip files: 7-Zip and Stuffit 11.

In Horde/Compress/zip.php I found at line 346:

        /* &quot;Data descriptor&quot; segment (optional but necessary if archive is

           not served as file). */

        $fr .= pack(&#039;V&#039;, $crc);

        $fr .= pack(&#039;V&#039;, $c_len);

        $fr .= pack(&#039;V&#039;, $unc_len);

This amounts to 12 bytes that gets added for each file in the archive. These are the 12 bytes that zipnote is stripping out for each file. PKWare&#039;s appnote.txt indicates there is confusion in the use of the data descriptor segment (should it have a signature, should it only be used in stream processing, which bit to set if it will be used) and promises a future appnote to resolve the confusion.



Since we did not want to touch every Macintosh on campus to set it to use a different default zip handler we went ahead and commented out the data descriptor segment.

</description> 
   <pubDate>Thu, 16 Nov 2006 11:53:47 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4670#t26199</link> 
  </item> 
   
  <item> 
   <title>Fixed in HEAD and FW_3 - thanks for the analysis and fix!</title> 
   <description>Fixed in HEAD and FW_3 - thanks for the analysis and fix!</description> 
   <pubDate>Thu, 16 Nov 2006 19:51:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4670#t26244</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
