Re: [compress] Archiver Detection fails

2009-02-26 Thread Stefan Bodewig
On 2009-02-26, Christian Grobmeier wrote: >> Note that the method (or better the input stream) is still broken in a >> more general sense since it will not detect self extracting ZIP files >> which do have a tiny native bootstrapper tacked to the front of the >> archive.  The ZipFile class can re

Re: [compress] Archiver Detection fails

2009-02-26 Thread Stefan Bodewig
On 2009-02-26, Stefan Bodewig wrote: > On 2009-02-26, Christian Grobmeier wrote: >> I recently figured out that a compress created zip file doesn't >> necessary match the signature of >> ZipArchiveInputStream.matches(...) > This is because the method is wrong - will be "fixed" in a few > minut

Re: [compress] Archiver Detection fails

2009-02-26 Thread Christian Grobmeier
Thanks Stefan. I allready thought that you can identify the problem within a short time. > Note that the method (or better the input stream) is still broken in a > more general sense since it will not detect self extracting ZIP files > which do have a tiny native bootstrapper tacked to the front o

Re: [compress] Archiver Detection fails

2009-02-26 Thread Stefan Bodewig
On 2009-02-26, Christian Grobmeier wrote: > I recently figured out that a compress created zip file doesn't > necessary match the signature of > ZipArchiveInputStream.matches(...) This is because the method is wrong - will be "fixed" in a few minutes, see below. The expected signature right now

[compress] Archiver Detection fails

2009-02-25 Thread Christian Grobmeier
Hi, I recently figured out that a compress created zip file doesn't necessary match the signature of ZipArchiveInputStream.matches(...) For example: AbstractTestCase.createArchive creates a zip archive with several files in it. The resulting zip archive cannot be matched in ArchiveStreamFactory.