commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Shattu (JIRA)" <>
Subject [jira] [Created] (COMPRESS-384) Tar File EOF not being detected
Date Sun, 09 Apr 2017 21:12:41 GMT
Jason Shattu created COMPRESS-384:

             Summary: Tar File EOF not being detected
                 Key: COMPRESS-384
             Project: Commons Compress
          Issue Type: Bug
          Components: Build
    Affects Versions: 1.13
         Environment: Windows 10, JDK 1.8
            Reporter: Jason Shattu

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 does'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

This message was sent by Atlassian JIRA

View raw message