fossa-cli icon indicating copy to clipboard operation
fossa-cli copied to clipboard

fossa analyze --unpack-archives fails on not strictly spec-compliant tar files

Open rolodato opened this issue 4 years ago • 1 comments

I've seen this happen on tar files that raise a warning of "tar: A lone zero block at ####" when extracting manually using tar. Extraction succeeds despite the warnings.

I've not been able to determine what can cause this, I'm guessing it's archives created with a broken tar program. Here are some archives that reproduce the issue:

https://archive.apache.org/dist/xml/xerces-j/binaries/Xerces-J-bin.2.6.2.tar.gz https://archive.apache.org/dist/commons/cli/binaries/commons-cli-1.2-bin.tar.gz

As mentioned here, this might have something to do with ancient versions of Ant generating non-compliant tar files. Given that current versions of tar extract this file correctly, I would expect the CLI to be able to extract them correctly even if they are not 100% compliant to spec.

rolodato avatar Nov 29 '21 19:11 rolodato

@rolodato I filed an internal ticket (ANE-333) for this issue. This is not a high priority for us but I will pay attention if we see this issue more.

zlav avatar May 20 '22 22:05 zlav