Fixed the problem that the number of hosts in the cve list repeated statistics
This commit is contained in:
parent
36b238d550
commit
da571495e8
28
0006-fix-cve-list-by-host-count.patch
Normal file
28
0006-fix-cve-list-by-host-count.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
From c4e6df14e518206ee9f4de55b3ba45f9f6632d1b Mon Sep 17 00:00:00 2001
|
||||||
|
From: gongzt <gong_zhengtang@163.com>
|
||||||
|
Date: Mon, 23 Oct 2023 15:39:44 +0800
|
||||||
|
Subject: Fixed the problem that the number of hosts in the cve list repeated statistics
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
---
|
||||||
|
database/apollo.sql | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/database/apollo.sql b/database/apollo.sql
|
||||||
|
index a87f85c..b79707b 100644
|
||||||
|
--- a/database/apollo.sql
|
||||||
|
+++ b/database/apollo.sql
|
||||||
|
@@ -130,7 +130,7 @@ BEGIN
|
||||||
|
DROP TABLE IF EXISTS cve_host_user_count;
|
||||||
|
SET @tmp_cve_host_count_sql = 'CREATE TEMPORARY TABLE cve_host_user_count SELECT
|
||||||
|
cve_id,
|
||||||
|
- COUNT(host_id) AS host_num
|
||||||
|
+ COUNT(DISTINCT host_id) AS host_num
|
||||||
|
FROM
|
||||||
|
cve_host_match FORCE INDEX (ix_cve_host_match_host_id)
|
||||||
|
WHERE 1=1 ';
|
||||||
|
--
|
||||||
|
Gitee
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: aops-apollo
|
Name: aops-apollo
|
||||||
Version: v1.3.4
|
Version: v1.3.4
|
||||||
Release: 6
|
Release: 7
|
||||||
Summary: Cve management service, monitor machine vulnerabilities and provide fix functions.
|
Summary: Cve management service, monitor machine vulnerabilities and provide fix functions.
|
||||||
License: MulanPSL2
|
License: MulanPSL2
|
||||||
URL: https://gitee.com/openeuler/%{name}
|
URL: https://gitee.com/openeuler/%{name}
|
||||||
@ -10,6 +10,7 @@ Patch0002: 0002-fix-query-all-by-cve-list.patch
|
|||||||
Patch0003: 0003-fix-cve-list-get-api-query-error.patch
|
Patch0003: 0003-fix-cve-list-get-api-query-error.patch
|
||||||
Patch0004: 0004-fix-query-cve-list-error-and-sql-error.patch
|
Patch0004: 0004-fix-query-cve-list-error-and-sql-error.patch
|
||||||
Patch0005: 0005-fix-the-severity-field-filtering-error.patch
|
Patch0005: 0005-fix-the-severity-field-filtering-error.patch
|
||||||
|
Patch0006: 0006-fix-cve-list-by-host-count.patch
|
||||||
|
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
Requires: aops-vulcanus >= v1.3.0
|
Requires: aops-vulcanus >= v1.3.0
|
||||||
@ -72,6 +73,9 @@ popd
|
|||||||
%{python3_sitelib}/aops_apollo_tool/*
|
%{python3_sitelib}/aops_apollo_tool/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Oct 23 2023 gongzhengtang<gong_zhengtang@163.com> - v1.3.4-7
|
||||||
|
- fixed the problem that the number of hosts in the cve list repeated statistics
|
||||||
|
|
||||||
* Mon Oct 23 2023 wenxin<wenxin32@foxmail.com> - v1.3.4-6
|
* Mon Oct 23 2023 wenxin<wenxin32@foxmail.com> - v1.3.4-6
|
||||||
- fix the severity field filtering error
|
- fix the severity field filtering error
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user