From 97cfe0139354fac82c0ac4ca864c7722ad73e675 Mon Sep 17 00:00:00 2001 From: Jack Vander Pol Date: Thu, 14 May 2026 10:12:25 -0400 Subject: [PATCH] Added item_creation behavior for xmlfilecontent and textfilecontent54 per #315 and #316 --- .../independent-definitions-schema.xsd | 40 ++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/oval-schemas/independent-definitions-schema.xsd b/oval-schemas/independent-definitions-schema.xsd index 2bc68cf..9f52686 100644 --- a/oval-schemas/independent-definitions-schema.xsd +++ b/oval-schemas/independent-definitions-schema.xsd @@ -1916,6 +1916,19 @@ SERVERPROPERTY('IsClustered') AS [is_clustered] 'singleline' enables single line semantics in the regular expression provided by the pattern entity. This behavior is intended to align with the Perl regular expression 's' modifier: if true, the '.' metacharacter will match newlines. If false, it will not. The default is false. + + + For 'all_object_elements_fullfilled', items are only created when the entire object requirements are met (filepath, pattern, instance). + For 'filepath_exists', items are created for each filepath on the system that matches the filepath/path/filname object requirement. This option will prevent false negatives in instances where text files exist that match the filepath object requirements, but do not contain the required pattern inside the file, which prevents item creation. + + + + + + + + + @@ -2275,7 +2288,7 @@ SERVERPROPERTY('IsClustered') AS [is_clustered] - + @@ -2387,6 +2400,31 @@ SERVERPROPERTY('IsClustered') AS [is_clustered] + + + + The XMLFileContentBehaviors complex type defines a number of behaviors that allow a more detailed definition of the xmlfilecontent_object being specified. Note that using these behaviors may result in some unique results. For example, a double negative type condition might be created where an object entity says include everything except a specific item, but a behavior is used that might then add that item back in. + It is important to note that the 'max_depth' and 'recurse_direction' attributes of the 'behaviors' element do not apply to the 'filepath' element, only to the 'path' and 'filename' elements. This is because the 'filepath' element represents an absolute path to a particular file and it is not possible to recurse over a file. + The XMLFileContentBehaviors extend the ind-def:FileBehaviors and therefore include the behaviors defined by that type. + + + + + + For 'all_object_elements_fullfilled', items are only created when the entire object requirements are met (filepath, xpath). + For 'filepath_exists', items are created for each filepath on the system that matches the filepath/path/filname object requirement. This option will prevent false negatives in instances where XML files exist that match the filepath object requirements, but do not contain the required xpath inside the file, which prevents item creation. + + + + + + + + + + + +