Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

[BUG]Unable to read tar file: unexpected EOF occurred When scanning a image #312

Open
mowangdk opened this issue Oct 20, 2021 · 1 comment · May be fixed by #318
Open

[BUG]Unable to read tar file: unexpected EOF occurred When scanning a image #312

mowangdk opened this issue Oct 20, 2021 · 1 comment · May be fixed by #318

Comments

@mowangdk
Copy link
Contributor

error message:

ScanArtifact:: failed analysis: analyze error: failed to analyze layer: sha256:xxxxxx : walk error: failed to analyze file: failed toanalyze usr/lib/jvm/xxxx: unable to open a file (usr/lib/jvm/xxx): unable to read tar file: unexpected EOF

My opinion is that the error in specific layer should not have influence on entire image.
Is it reasonable to ignore the error in the inspectLayer method?

@mowangdk mowangdk changed the title Unable to read tar file: unexpected EOF occurred When scanning a image [BUG]Unable to read tar file: unexpected EOF occurred When scanning a image Oct 25, 2021
@mowangdk mowangdk linked a pull request Oct 28, 2021 that will close this issue
@knqyf263
Copy link
Collaborator

If we accept an error in any layers, it may lead to a wrong result. I think we should not ignore an error.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants