OpenSCAP / openscap

NIST Certified SCAP 1.2 toolkit
https://www.open-scap.org/tools/openscap-base
GNU Lesser General Public License v2.1
1.36k stars 374 forks source link

[SCAP.R.1300] can't perform schematron validation #1637

Closed jan-cerny closed 3 years ago

jan-cerny commented 3 years ago

Description of Problem:

I can't perform schematron validation of some content from R1300 from SCAP 1.3 validation test suite

OpenSCAP Version:

1.3.4

Operating System & Version:

f32

Steps to Reproduce:

there are multiple reproducers within R1300, the problem appears at least for all files in R1300 in the suite

oscap xccdf validate --schematron requirements/R1300/r1300.2.1-datastream.xml

oscap xccdf validate --schematron requirements/R1300/r1300.2.2-datastream.xml

oscap xccdf validate --schematron requirements/R1300/r1300.3.1-datastream.xml

oscap xccdf validate --schematron requirements/R1300/r1300.3.2-datastream.xml

oscap xccdf validate --schematron requirements/R1300/r1300.3.3-datastream.xml

oscap xccdf validate --schematron requirements/R1300/r1300.4.1-datastream.xml

Actual Results:

OpenSCAP Error: Schematron rules not found when trying to validate 'requirements/R1300/r1300.2.1-datastream.xml' [/builddir/build/BUILD/openscap-1.3.4/src/source/schematron.c:124]

and similar messages for all commands

Expected Results:

for all xml files in requirements/R1300 schematron validation is performed and all of the files are reported as invalid

Additional Information / Debugging Steps:

jan-cerny commented 3 years ago

it looks like we don't have schematron for scap 1.3 source datastreams in the repository

jan-cerny commented 3 years ago

Fixed in https://github.com/OpenSCAP/openscap/pull/1703