mitre / heimdall_tools

DEPRECATED: A set of utilities for converting and working with compliance data for viewing in the heimdall applications
https://heimdall-tools.mitre.org
Other
35 stars 20 forks source link

xccdf_results_mapper undefined method `match' #120

Closed ccoffin closed 2 years ago

ccoffin commented 2 years ago

Trying to convert some OpenSCAP produced XCCDF results XML into HDF using xccdf_results_mapper on two different systems and have received the following error message in each case.

[number6@localhost Documents]$ sudo docker run -it -v $(pwd):/share mitre/heimdall_tools xccdf_results_mapper -x rhel7scap_2.xml -o hdf_results.json Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. Traceback (most recent call last): 13: from /usr/local/bundle/bin/heimdall_tools:23:in <main>' 12: from /usr/local/bundle/bin/heimdall_tools:23:inload' 11: from /usr/local/bundle/gems/heimdall_tools-1.3.48.1.g88bd047/exe/heimdall_tools:14:in <top (required)>' 10: from /usr/local/bundle/gems/thor-0.20.3/lib/thor/base.rb:466:instart' 9: from /usr/local/bundle/gems/heimdall_tools-1.3.48.1.g88bd047/lib/heimdall_tools/command.rb:44:in dispatch' 8: from /usr/local/bundle/gems/thor-0.20.3/lib/thor.rb:387:indispatch' 7: from /usr/local/bundle/gems/thor-0.20.3/lib/thor/invocation.rb:126:in invoke_command' 6: from /usr/local/bundle/gems/thor-0.20.3/lib/thor/command.rb:27:inrun' 5: from /usr/local/bundle/gems/heimdall_tools-1.3.48.1.g88bd047/lib/heimdall_tools/cli.rb:49:in xccdf_results_mapper' 4: from /usr/local/bundle/gems/heimdall_tools-1.3.48.1.g88bd047/lib/heimdall_tools/xccdf_results_mapper.rb:117:into_hdf' 3: from /usr/local/bundle/gems/heimdall_tools-1.3.48.1.g88bd047/lib/heimdall_tools/xccdf_results_mapper.rb:117:in each_with_index' 2: from /usr/local/bundle/gems/heimdall_tools-1.3.48.1.g88bd047/lib/heimdall_tools/xccdf_results_mapper.rb:117:ineach' 1: from /usr/local/bundle/gems/heimdall_tools-1.3.48.1.g88bd047/lib/heimdall_tools/xccdf_results_mapper.rb:132:in block in to_hdf' /usr/local/bundle/gems/heimdall_tools-1.3.48.1.g88bd047/lib/heimdall_tools/xccdf_results_mapper.rb:93:insatisfies_parse': undefined method `match' for # (NoMethodError)

aaronlippold commented 2 years ago

It's possible the actual file that producing the error would also be useful if you could attach it

ccoffin commented 2 years ago

Ah yes... here you go.

rhel7scap_2.zip