Description
Add findCpes Thrift method to search CPEs by vendor, product and version.
Steps followed and expected result
Steps:
- Call
CveSearchService.findCpes(vendor, product, version) via Thrift.
- Provide vendor and product (e.g.
"apache", "httpd").
- Provide version for filtering (e.g.
"2.4"), or "" / "*" for all CPEs.
Expected result:
- Returns a set of CPE strings matching the given vendor and product.
- If version is provided, only CPEs with that version are returned.
- If version is empty or
"*", all matching CPEs are returned.
- Null or empty vendor/product returns an empty set.
- IOException from the CVE Search API is wrapped in TException.
Example:
findCpes("apache", "httpd", "2.4") → Set of CPEs like cpe:2.3:a:apache:httpd:2.4:...
findCpes("apache", "httpd", "*") → Set of all Apache httpd CPEs
Description
Add
findCpesThrift method to search CPEs by vendor, product and version.Steps followed and expected result
Steps:
CveSearchService.findCpes(vendor, product, version)via Thrift."apache","httpd")."2.4"), or""/"*"for all CPEs.Expected result:
"*", all matching CPEs are returned.Example:
findCpes("apache", "httpd", "2.4")→ Set of CPEs likecpe:2.3:a:apache:httpd:2.4:...findCpes("apache", "httpd", "*")→ Set of all Apache httpd CPEs