[ 
https://issues.apache.org/jira/browse/COMPRESS-171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Lowe updated COMPRESS-171:
---------------------------------

    Fix Version/s:     (was: 1.1)
                   1.4
    
> createArchiveInputStream detects text files less than 100 bytes as tar 
> archives
> -------------------------------------------------------------------------------
>
>                 Key: COMPRESS-171
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-171
>             Project: Commons Compress
>          Issue Type: Bug
>          Components: Archivers
>    Affects Versions: 1.2, 1.3
>         Environment: Windows 7/JDK 1.6
>            Reporter: Daniel Lowe
>              Labels: detection, tar
>             Fix For: 1.4
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> The fix for COMPRESS-117 which modified 
> ArchiveStreamFactory().createArchiveInputStream(inputstream) results in short 
> text files (empirically seems to be those <= 100 bytes) being detected as tar 
> archives which obviously is not desirable if one wants to know whether or not 
> the files are archives.
> I'm not an expert on compressed archives but perhaps the heuristic that if a 
> stream is interpretable as a tar file without an exception being thrown 
> should only be applied on archives greater than 100 bytes?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to