commons-compress-1.26.1 false positive on detecting archive

2024-03-19 Thread Gren Elliot
Hi, I’m finding that commons-compress-1.26.1 is recognising a utf-16 text file as a tar archive – unlike the previous version This is the code that changed in that release in ArchiveStreamFactory - public static String detect(final InputStream in) throws ArchiveException { that differs in detec

Re: commons-compress-1.26.1 false positive on detecting archive

2024-03-19 Thread Gary Gregory
Hello Gren, Feel free to provide a PR on GitHub (with a unit test) so we can see clearly what you suggest. TY! Gary On Tue, Mar 19, 2024, 7:46 AM Gren Elliot wrote: > Hi, > > > > I’m finding that commons-compress-1.26.1 is recognising a utf-16 text file > as a tar archive – unlike the previous

RE: Re: commons-compress-1.26.1 false positive on detecting archive

2024-03-19 Thread Gren Elliot
Thanks for the reply Gary. I will try to put something together later. Gren Elliot Senior Software Engineer m: +44 7590 571125 p: w: https://www.mimecast.com Address: https://www.mimecast.com/company/contact/ Work Protected.™