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

ZipExtraFields need data from central directory as well

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0
    • None
    • None

    Description

      Extra field data can be stored in two places inside a zip archive - the entries local file data and its central directory entry.

      Currently ZipFile - like java.util.zip.* - ignores the data stored inside the central directory and assumes all information can be taken from the local file data part.

      Unfortunately there are cases where an archiver uses different data, or even worse, only uses the central directory. One such case comes up with SANDBOX-176 and WinZIP. WinZIP uses InfoZIP extra fields to store Unicode versions of file names but it only stores them inside the central directory, where ZipFile doesn't look for them.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: