Bug 1981691

Summary: NULL values reported by the yamlfilecontent probe are incoherent and indistinguishable from empty strings
Product: Red Hat Enterprise Linux 8 Reporter: Evgeny Kolesnikov <ekolesni>
Component: openscapAssignee: Evgeny Kolesnikov <ekolesni>
Status: CLOSED ERRATA QA Contact: Matus Marhefka <mmarhefk>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.4CC: ekolesni, jcerny, mhaicman
Target Milestone: betaKeywords: AutoVerified, Triaged
Target Release: 8.5Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openscap-1.3.5-5.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-09 18:04:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Evgeny Kolesnikov 2021-07-13 07:31:25 UTC
Description of problem:
The yamlfilecontent probe of the scanner is unable to coherently represent NULL values.

Version-Release number of selected component (if applicable):
1.3.4

How reproducible:
Always.

Steps to Reproduce:
1. Use the scanner with a content targeting a YAML file with different types of NULL values present in the document (undefined or empty node, literal NULL value etc)
2. Check the report: NULL values would be represented in a different ways (empty, absent entry, empty quoted string etc).
3.

Actual results:
NULLs are empty or absent.

Expected results:
NULLs are coherently marked in a special way, that would allow to distinguish them from empty strings.

Comment 1 Evgeny Kolesnikov 2021-07-13 07:32:53 UTC
Upstream PR: https://github.com/OpenSCAP/openscap/pull/1756

Comment 9 errata-xmlrpc 2021-11-09 18:04:06 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (openscap bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2021:4192