cve-search / CveXplore

CveXplore
https://cve-search.github.io/CveXplore/
GNU General Public License v3.0
32 stars 16 forks source link

Windows compatibility for AppLogger & CWEDownloads #301

Closed oh2fih closed 1 month ago

oh2fih commented 1 month ago
oh2fih commented 1 month ago

Testing

Environment

Results

Running python.exe .\sbin\db_updater.py -f -c:

oh2fih commented 1 month ago

Fixed in https://github.com/cve-search/CveXplore/pull/301/commits/43f7636f39c31c4d5b74cc3df81e11e1a8d2a59b, there was another compatibility issue with Windows during processing CWE data.

  File ""%LocalAppData%\Programs\Python\Python312\Lib\site-packages\CveXplore\core\database_maintenance\sources_process.py", line 1003, in file_to_queue
    self.parser.parse(f"file://{filename}")

urllib.error.URLError: <urlopen error [WinError 3] The system cannot find the path specified: ''>
oh2fih commented 1 month ago

Despite there are still Windows incompatibility issues in cve-search...

...and issues with Python 3.12...

...this fixes database updates for CveXplore on Windows.

The database now contains all the necessary information, e.g.,

>>> from CveXplore import CveXplore
>>> cvx = CveXplore()
>>> result = cvx.get_multi_store_entries([("CWE", {"id": "78"}), ("cves", {"id": "CVE-2024-6652"})])
>>> result
[<< Cwe:78 >>, << Cves:CVE-2024-6652 >>]