Closed vojtapolasek closed 3 years ago
Describe the bug The issue lies in the schema for system characteristics. The schema mandates that system_data element must not be empty. This causes problems when the collected_objects element contains only object with status does not exist.
system_data
collected_objects
does not exist
It causes problems during Scapval validation. The full context is in this mail: https://lists.cisecurity.org/empathy/thread/JARIE5LJASO7WFLT7TPJO7FGBRDOCTEI
Replication Steps (if applicable) empty_system_data.xml.zip no_system_data.xml.zip
oscap oval validate --schematron no_system_data.xml
it passes
Expected behavior I believe that validation of no_system_data.xml should fail. It would be great if validation of empty_system_data. would pass.
Content
OVAL details (complete all those relevant)
Additional context
Proposed fix is in PR #117
PR has been merged. Resolving issue.
Describe the bug The issue lies in the schema for system characteristics. The schema mandates that
system_data
element must not be empty. This causes problems when thecollected_objects
element contains only object with statusdoes not exist
.It causes problems during Scapval validation. The full context is in this mail: https://lists.cisecurity.org/empathy/thread/JARIE5LJASO7WFLT7TPJO7FGBRDOCTEI
Replication Steps (if applicable) empty_system_data.xml.zip no_system_data.xml.zip
it passes
Expected behavior I believe that validation of no_system_data.xml should fail. It would be great if validation of empty_system_data. would pass.
Content
OVAL details (complete all those relevant)
Additional context