<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Team,<br>
<br>
I need some piece of advice how to implement join in OVAL for
variables if some of them are empty .<br>
<br>
I'm looking at the existing example from master which uses
<concat>-<split>. However this code doesn't work as
expected for empty variable <span class="pl-s"><span class="pl-pds"></span>var_rfg_include_config_regex<span
class="pl-pds"></span></span> in <concat> - returned
result "no value", while expected would be "%^/etc/rsyslog.conf$": <br>
<a class="moz-txt-link-freetext" href="https://github.com/ComplianceAsCode/content/blob/master/linux_os/guide/system/logging/ensure_rsyslog_log_file_configuration/rsyslog_files_groupownership/oval/shared.xml#L43">https://github.com/ComplianceAsCode/content/blob/master/linux_os/guide/system/logging/ensure_rsyslog_log_file_configuration/rsyslog_files_groupownership/oval/shared.xml#L43</a><br>
<br>
Note: <a moz-do-not-send="true"
href="https://oval.mitre.org/language/version5.11/ovaldefinition/documentation/oval-definitions-schema.html#UniqueFunctionType">UniqueFunctionType</a>
looks more applicable here, but it doesn't work as well with the
same reason - returned result is "no value" when one of variables is
empty.<br>
<br>
Can any approach be suggested to avoid getting "no value" and return
expected result for sample <span class="pl-s">var_rfg_all_log_files_as_string_regex<span
class="pl-pds"> </span></span>variable (with joined values from
defined only variables/objects)?<br>
<br>
Regards,<br>
Ilya.<br>
</body>
</html>