canonical / ubuntu-com-security-api

The API for CVEs and USNs data.
16 stars 9 forks source link

Add fuzzy search for packages #153

Closed carkod closed 2 months ago

carkod commented 2 months ago

Done

Add fuzzy search for packages: "mysql-8.0" returns an expected result for Ubuntu 22.04 LTS. https://ubuntu.com/security/cves?q=&package=mysql-8.0

However, "mysql" doesn't contains expected result for Ubuntu 22.04 LTS. https://ubuntu.com/security/cves?q=&package=mysql

The same condition applies to PostgreSQL.

"postgresql-14" works. https://ubuntu.com/security/cves?q=&package=postgresql-14

However, "postgresql" doesn't contains expected result: https://ubuntu.com/security/cves?q=&package=postgresql

QA

Issue / Card

Fixes https://warthogs.atlassian.net/browse/WD-4755

samhotep commented 2 months ago

Friendly reminder to rebase :)