You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Daniel Lowe (Created) (JIRA)" <ji...@apache.org> on 2012/01/20 18:54:40 UTC

[jira] [Created] (COMPRESS-171) createArchiveInputStream detects text files less than 100 bytes as tar archives

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.3, 1.2
         Environment: Windows 7/JDK 1.6
            Reporter: Daniel Lowe
             Fix For: 1.1


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

        

[jira] [Resolved] (COMPRESS-171) createArchiveInputStream detects text files less than 100 bytes as tar archives

Posted by "Stefan Bodewig (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COMPRESS-171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Bodewig resolved COMPRESS-171.
-------------------------------------

    Resolution: Fixed

fixed with svn revision 1237475
                
> 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

        

[jira] [Updated] (COMPRESS-171) createArchiveInputStream detects text files less than 100 bytes as tar archives

Posted by "Daniel Lowe (Updated) (JIRA)" <ji...@apache.org>.
     [ 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