Bug #33914
closedOpenSCAP scan fails with error "invalid byte sequence in UTF-8"
Description
Description of problem:
When the user runs an OpenSCAP scan against their RHEL 8 hosts, the scan fails.
Example Host:
redhat-release-8.4-0.6.el8.x86_64
rubygem-foreman_scap_client-0.4.7-1.el8sat.noarch
Actual results:
When the user runs an OpenSCAP command against some of their servers, they get these errors:
DEBUG: running: oscap xccdf eval --profile PROFILE_NAME --results-arf /tmp/d20210714-16213-1fn07xw/results.xml /var/lib/openscap/content/b7772a4001f865517e30762c406dee80fdab2100ecc010f4408519a979665f6e.xml
from /usr/bin/foreman_scap_client:23:in `<main>'
from /usr/bin/foreman_scap_client:23:in `load'
from /usr/share/gems/gems/foreman_scap_client-0.4.7/bin/foreman_scap_client:10:in `<top (required)>'
from /usr/share/gems/gems/foreman_scap_client-0.4.7/lib/foreman_scap_client/client.rb:22:in `run'
from /usr/share/ruby/tmpdir.rb:93:in `mktmpdir'
from /usr/share/gems/gems/foreman_scap_client-0.4.7/lib/foreman_scap_client/client.rb:24:in `block in run'
from /usr/share/gems/gems/foreman_scap_client-0.4.7/lib/foreman_scap_client/client.rb:53:in `scan'
from /usr/share/gems/gems/foreman_scap_client-0.4.7/lib/foreman_scap_client/client.rb:60:in `run_scan'
/usr/share/gems/gems/foreman_scap_client-0.4.7/lib/foreman_scap_client/client.rb:60:in `split': invalid byte sequence in UTF-8 (ArgumentError)
Expected results:
The scan should succeed on RHEL 8 hosts.
Updated by Oleh Fedorenko 8 months ago
- Subject changed from OpenSCAP scan fails with error "invalid byte sequence in UTF-8" to OpenSCAP scan fails with error "invalid byte sequence in UTF-8"
- Status changed from New to Assigned
- Assignee set to Oleh Fedorenko
Updated by The Foreman Bot 8 months ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman_scap_client/pull/42 added
Updated by Oleh Fedorenko 4 months ago
- Status changed from Ready For Testing to Closed
Updated by Oleh Fedorenko 4 months ago
- Fixed in Releases foreman_scap_client-0.5.2 added