Skip to content

Jar files are not getting extracted to Temp location #4582

Open
@KappaSign

Description

@KappaSign

Description

Running the tool against a folder with jar files do not extract the files to temp location.

To reproduce

Steps to reproduce the behavior:

  1. Run the tool against a folder with jar files/ eg.. C:\Users\sabar>cve-bin-tool C:\apache-tomcat-9.0.97

  2. Console has warnings listed as below.

        INFO     cve_bin_tool.VersionScanner - Language Checkers: dart, env, go, java, javascript, perl, php, python, r, ruby, rust, swift                                              version_scanner.py:143
        [06:52:01] WARNING  cve_bin_tool.VersionScanner - Failure extracting C:\apache-tomcat-9.0.97\apache-tomcat-9.0.97\bin\bootstrap.jar                                                              extractor.py:451
    

Expected behaviour:
The files are extracted to the temp locations properly.
Actual behaviour:
Temp locations are empty after processed by extractor.py

Version/platform info

Windows 11

Version of CVE-bin-tool( e.g. output of cve-bin-tool --version):

C:\Users\sabar>cve-bin-tool --version
3.4

Installed from pypi or github?
github

Operating system: Linux/Windows (other platforms are unsupported but feel free to report issues anyhow)

  • On Linux (or Windows Subsystem for Linux) you can run uname -a
  • On Windows you can run systeminfo | findstr /B /C:"OS Name" /C:"OS Version"

C:\Users\sabar>systeminfo | findstr /B /C:"OS Name" /C:"OS Version
OS Name: Microsoft Windows 11 Home Single Language
OS Version: 10.0.22631 N/A Build 22631

Python version (e.g. python3 --version):
C:\Users\sabar>python --version
Python 3.13.0

Running in any particular CI environment we should know about? (e.g. Github Actions)
N/A

Anything else?

7Zip is installed at "C:\Program Files\7-Zip\7zFM.exe"
I can manually unzip these jars with 7Zip. So that tool is working I believe.

Feel free to add any other context here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions