Uploaded image for project: 'Commons Compress'
  1. Commons Compress
  2. COMPRESS-103

allow data descriptors to follow STORED entries in ZIP archives being read

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.0
    • 1.1
    • None
    • None

    Description

      the document named "Word XPS.xps" found under http://www.wssdemo.com/XPS/Forms/AllItems.aspx contains at least one STORED entry that uses a data descriptor after the entries' data to hold size and CRC information.

      The ZipFile class uses information from the central directory and thus knows the size of the entry and can deal with the archive. ZipArchiveInputStream currently can't.

      One solution would be to read the entry until we hit the signature of a data descriptor, local file header or the start of the central directory. If we hit another LFH or the CD then the data descriptor didn't use the signature (see COMPRESS-101 ) and the last 12 bytes read have already been the data descriptor. This will certainly not be very efficient.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bodewig Stefan Bodewig
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: