CESNET / pakiti-server

Pakiti provides a monitoring mechanism to check the patching status of Linux systems.
BSD 2-Clause "Simplified" License
49 stars 35 forks source link

Handle bz2 compressed OVAL files #169

Closed lucasnetau closed 4 years ago

lucasnetau commented 4 years ago

Ubuntu and Oracle OVAL files are distributed with bz2 compression. Detect compression and decompress file before import.

mgrosa commented 4 years ago

I am so glad someone noticed this change on Ubuntu OVAL files and is trying to pull a workaround! Thanks for that!

I am now using your solution and I have noticed that "Debian Advisories" come as "text/plain", thus entering in your default switch statement...

I have also posted a two part issue an hour ago related with Ubuntu OVAL files... The first part is now solved with your solution but I still have the problem where I can not check CVEs on Ubuntu systems... I can only imagine that the reason for the problem is related to the change in the Canonical OVAL structure... image

lucasnetau commented 4 years ago

Good pickup @mgrosa, updated to handle the plain text DSA files.

tauceti2 commented 4 years ago

Thanks @lucasnetau and @mgrosa!