Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-30808

Regression (rubygem-foreman_scap_client.noarch 0:0.5.2-1.el7sat is not functional due to ruby string.scrub method not available in Ruby 2.0)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 6.15.0, 6.16.z
    • SCAP Plugin
    • Moderate
    • Yes

      Description of problem:
      Regression of the issue

      Unable to generate OpenSCAP reports on RHEL 7 Satellite Clients

      Version-Release number of selected component (if applicable):
      rubygem-foreman_scap_client.noarch 0:0.5.2-1.el7sat

      How reproducible:
      On any RHEL 7 server with pkg (rubygem-foreman_scap_client-0.5.2-1.el7sat.noarch)

      Steps to Reproduce:
      1. Update to rubygem-foreman_scap_client.noarch 0:0.5.2-1.el7sat
      2. Attempt to gather a scap report
      3. Capture error

      Actual results:

      DEBUG: running: oscap xccdf eval   --profile xccdf_org.ssgproject.content_profile_cis  --results-arf /tmp/d20250130-27752-1gdscin/results.xml /var/lib/openscap/content/96c2a9d5278d5da905221bbb2dc61d0ace7ee3d97f021fccac994d26296d986d.xml
      /usr/share/gems/gems/foreman_scap_client-0.5.2/lib/foreman_scap_client/base_client.rb:84:in `run_scan': undefined method `scrub' for #<String:0x00000001825bd0> (NoMethodError)
      	from /usr/share/gems/gems/foreman_scap_client-0.5.2/lib/foreman_scap_client/base_client.rb:77:in `scan'
      	from /usr/share/gems/gems/foreman_scap_client-0.5.2/lib/foreman_scap_client/base_client.rb:50:in `block in run_in_tmpdir'
      	from /usr/share/ruby/tmpdir.rb:88:in `mktmpdir'
      	from /usr/share/gems/gems/foreman_scap_client-0.5.2/lib/foreman_scap_client/base_client.rb:48:in `run_in_tmpdir'
      	from /usr/share/gems/gems/foreman_scap_client-0.5.2/lib/foreman_scap_client/base_client.rb:21:in `run'
      	from /usr/share/gems/gems/foreman_scap_client-0.5.2/bin/foreman_scap_client:16:in `<top (required)>'
      	from /usr/bin/foreman_scap_client:23:in `load'
      	from /usr/bin/foreman_scap_client:23:in `<main>'
      
      

      Expected results:

      DEBUG: running: oscap xccdf eval   --profile xccdf_org.ssgproject.content_profile_standard  --results-arf /tmp/d20240506-23809-15upgj5/results.xml /var/lib/openscap/content/96c2a9d5278d5da905221bbb2dc61d0ace7ee3d97f021fccac994d26296d986d.xml
      WARNING: This content points out to the remote resources. Use `--fetch-remote-resources' option to download them.
      WARNING: Skipping https://www.redhat.com/security/data/oval/com.redhat.rhsa-RHEL7.xml.bz2 file which is referenced from XCCDF content
      DEBUG: running: /usr/bin/env bzip2 /tmp/d20240506-23809-15upgj5/results.xml
      Uploading results to https://sat6.example.com:9090/compliance/arf/1
      Report uploaded, report id: 11461
      

      Additional info:

              jira-bugzilla-migration RH Bugzilla Integration
              rhn-support-sadas Satyajit Das
              Peter Ondrejka Peter Ondrejka
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: