From ac23585181830c6579ad07ba3d09c71bc7d68238 Mon Sep 17 00:00:00 2001 From: Crystal Lai Date: Thu, 15 Aug 2019 14:36:54 +0200 Subject: [PATCH 1/2] changed all SINGLE_INSTANCES to SINGLE_INSTANCE including in tests --- gsa/src/gmp/__tests__/parser.js | 4 ++-- gsa/src/gmp/parser.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gsa/src/gmp/__tests__/parser.js b/gsa/src/gmp/__tests__/parser.js index 7dde239e83..ea2e3404ba 100644 --- a/gsa/src/gmp/__tests__/parser.js +++ b/gsa/src/gmp/__tests__/parser.js @@ -676,7 +676,7 @@ describe('parseCvssBaseFromVector tests', () => { expect(parseCvssBaseFromVector('AU:S')).toEqual({ accessVector: undefined, accessComplexity: undefined, - authentication: 'SINGLE_INSTANCES', + authentication: 'SINGLE_INSTANCE', availabilityImpact: undefined, confidentialityImpact: undefined, integrityImpact: undefined, @@ -776,7 +776,7 @@ describe('parseCvssBaseFromVector tests', () => { expect(parseCvssBaseFromVector('AV:N/AC:H/AU:S/C:C/I:C/A:C')).toEqual({ accessVector: 'NETWORK', accessComplexity: 'HIGH', - authentication: 'SINGLE_INSTANCES', + authentication: 'SINGLE_INSTANCE', availabilityImpact: 'COMPLETE', confidentialityImpact: 'COMPLETE', integrityImpact: 'COMPLETE', diff --git a/gsa/src/gmp/parser.js b/gsa/src/gmp/parser.js index 440e651dac..a7cc04e179 100644 --- a/gsa/src/gmp/parser.js +++ b/gsa/src/gmp/parser.js @@ -336,7 +336,7 @@ export const parseCvssBaseFromVector = vector => { if (value === 'm') { au = 'MULTIPLE_INSTANCES'; } else if (value === 's') { - au = 'SINGLE_INSTANCES'; + au = 'SINGLE_INSTANCE'; } else if (value === 'n') { au = 'NONE'; } From b73c15bb7408d3190f20cc0cf9ac13ad5da3d78e Mon Sep 17 00:00:00 2001 From: Crystal Lai Date: Thu, 15 Aug 2019 16:00:34 +0200 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ed58f1884..636d7430ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). logged in [#1508](https://github.com/greenbone/gsa/pull/1508) ### Fixed +- Fixed CVSSBaseCalculatorv2 [#1572](https://github.com/greenbone/gsa/pull/1572) - Fix title in Operating Systems table of Reports [#1567](https://github.com/greenbone/gsa/pull/1567) - Fix displaying only usable report formats at report download [#1565](https://github.com/greenbone/gsa/pull/1565) - Fix handling schedule_periods ("once" option) in TaskDialog [#1563](https://github.com/greenbone/gsa/pull/1563)