-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
convert xccdf_results2hdf: TypeError: Cannot read properties of undefined (reading 'match') #1183
Comments
@aaronlippold or anyone else - can you please take a look at this error? It's very easy to reproduce, so hopefully that helps with resolving it quickly. |
It appears this bug is in |
The only place where |
Thank you @candrews for the issue and for uploading the results file. Which SCAP content and profile were you running? That way we can reproduce it on our side because this file looks different than others we have seen. |
This file was generated using this comment:
|
I think this problem is really an indicator of the converter not implementing major parts of the XCCDF specification correctly, including nested groups. I've submitted an MR which implements that feature, fixes this issue, and makes other improvements: mitre/heimdall2#4255 |
Given this report.xml (which is, as far as I can, a valid xccdf report produced by
openscap
) run:npx @mitre/[email protected] convert xccdf_results2hdf -i report.xml -o report.hdf
Expected:
The conversion should complete successfully.
Actual:
The conversion failed with
TypeError: Cannot read properties of undefined (reading 'match')
The text was updated successfully, but these errors were encountered: