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

TarArchiveEntry uses bad size for directories in the File-arg constructor

    XMLWordPrintableJSON

Details

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

    Description

      The File-arg constructor sets the size to File.length() which may be different from 0 for directories on Unix-like systems.

      This leads to archives with entries that claim to have a length of say 4096 bytes but in fact don't contain any data at all, rendering the created archive invalid.

      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: