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

Tar File EOF not being detected

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Bug
    • 1.13
    • None
    • Build
    • None
    • Windows 10, JDK 1.8

    Description

      I've created both a zip and tar file, with the same contents using the latest version of 7zip. When I read both archives using code of the form:

      ArchiveStreamFactory().createArchiveInputStream(format, inputStream);

      I notice that both formats correctly list their contents, however the Tar Input doesn't return a "null" entry when it hits the EOF from archiveStream.getNextEntry()

      this makes it hard to distinguish between a genuine EOF or a file which is still being written to.

      Attachments

        1. file.tar
          7 kB
          Jason Shattu

        Activity

          People

            Unassigned Unassigned
            jasons2000 Jason Shattu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: