From 5b9074836e095edee70687847dbdb7c86a3dba79 Mon Sep 17 00:00:00 2001 From: Tim Lee Date: Mon, 19 Aug 2024 14:14:01 -0600 Subject: [PATCH] Bugfix: remove filter validation (#21399) --- server/datastore/mysql/software_titles.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/server/datastore/mysql/software_titles.go b/server/datastore/mysql/software_titles.go index dc9833ec86..4b0107a899 100644 --- a/server/datastore/mysql/software_titles.go +++ b/server/datastore/mysql/software_titles.go @@ -96,10 +96,6 @@ func (ds *Datastore) ListSoftwareTitles( opt.ListOptions.OrderDirection = fleet.OrderDescending } - if opt.AvailableForInstall && opt.VulnerableOnly { - return nil, 0, nil, fleet.NewInvalidArgumentError("query", "available_for_install and vulnerable can't be provided together") - } - if (opt.MinimumCVSS > 0 || opt.MaximumCVSS > 0 || opt.KnownExploit) && !opt.VulnerableOnly { return nil, 0, nil, fleet.NewInvalidArgumentError("query", "min_cvss_score, max_cvss_score, and exploit can only be provided with vulnerable=true") }