Replies: 1 comment 8 replies
-
|
FYI, I'm able to convert the collected item from the record into a variable_object, and perform the same test via a variable test, which is a good workaround, just makes the results less understandable as to where the data came from. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to know the backstory (if anyone recalls) why we would intentionally limit the functionality of state tests with record types? We have created content that runs in SCC, JOVAL and other tools, but one vendor contacted us with:
According to the OVAL 5.11 schema documentation, the use of var_ref in the wmi57_state for the entity type record is not permitted.
In looking at the schema, it appears they are correct, but I'm confused why this would be something OVAL would want to restrict? I've used this feature in both WMI57 and SQL512 tests, and the content is technically schema valid, so didn't realize it was an issue. Plus the fact that it ran without errors in JOVAL and potentially openSCAP without errors, make me want to ask the vendor that doesn't support it, to just add support as we'll be removing this note in OVAL 5.12.1.
Thoughts? Especially looking for feedback from @solind , hoping you might have some history on this?
<xsd:complexType name="EntityStateRecordType">
xsd:annotation
xsd:documentationThe EntityStateRecordType defines an entity that consists of a number of uniquely named fields. This structure is used for representing a record from a database query and other similar structures where multiple related fields must be collected at once. Note that for all entities of this type, the only allowed datatype is 'record' and the only allowed operation is 'equals'. During analysis of a system characteristics item, each field is analyzed and then the overall result for elements of this type is computed by logically anding the results for each field and then applying the entity_check attribute.</xsd:documentation>
xsd:documentationNote the datatype attribute must be set to 'record'.</xsd:documentation>
xsd:documentationNote the operation attribute must be set to 'equals'.</xsd:documentation>
xsd:documentationNote the var_ref attribute is not permitted and the var_check attribute does not apply.</xsd:documentation>
xsd:documentationNote that when the mask attribute is set to 'true', all child field elements must be masked regardless of the child field's mask attribute value.</xsd:documentation>
</xsd:annotation>
xsd:complexContent
<xsd:extension base="oval-def:EntityStateComplexBaseType">
xsd:sequence
<xsd:element name="field" type="oval-def:EntityStateFieldType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
Beta Was this translation helpful? Give feedback.
All reactions