W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2013

Re: [whatwg] Zip archives as first-class citizens

From: Glenn Maynard <glenn@zewt.org>
Date: Wed, 28 Aug 2013 12:21:55 -0500
Message-ID: <CABirCh9LrC-tjLFTHL7Ape9qKj=V7ihVtYp6ynu=+wk+0fZGPQ@mail.gmail.com>
To: Eric Uhrhane <ericu@chromium.org>
Cc: WHATWG <whatwg@whatwg.org>
On Wed, Aug 28, 2013 at 12:07 PM, Eric Uhrhane <ericu@chromium.org> wrote:

> We've covered this several times.  The directory records in a zip can
> be superseded by further directories later in the archive, so you
> can't trust that you've got the right directory until you're done
> downloading.

Both the local headers and the central record can be wrong.  (As mentioned
on IRC the other day, apparently EPUB files often have broken central
records, so eBook readers probably prefer the local records.)  If they're
out of sync, then they'll always be broken in some clients.

We just have to make sure that the record that takes priority in any
particular case is well-defined, so we have interop.  If some malformed
archives won't work in some cases as a result, using a different format
isn't an improvement: that just means *zero* existing archives would work.

This applies to various other aspects of the format: the maximum supported
length of comments and handling of duplicate filenames, for example.  This
would all need to be specified; the ZIP "AppNote" doesn't specify a parser
or error handling in the way the web needs, it just describes the format.

Glenn Maynard
Received on Wednesday, 28 August 2013 17:22:40 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:23 UTC