Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-7050

Wrong filename created when using --oval-results option

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • rhel-9.4.z
    • rhel-8.8.0, rhel-9.2.0
    • openscap
    • None
    • openscap-1.3.10-1.el9_4
    • None
    • None
    • rhel-sst-security-compliance
    • ssg_security
    • None
    • False
    • Hide

      None

      Show
      None
    • No
    • None
    • All
    • None

      What were you trying to do that didn't work?

      The following command creates a broken filename as oval result:

      # /usr/bin/oscap xccdf eval --profile xccdf_org.ssgproject.content_profile_stig_gui --rule xccdf_org.ssgproject.content_rule_configure_usbguard_auditbackend --oval-results /usr/share/xml/scap/ssg/content/ssg-rhel8-ds.xml
      [...]
      
      # ll
      total 10492
      -rw-r--r--. 1 root root  115783 Sep 22 13:36 %2Fusr%2Fshare%2Fopenscap%2Fcpe%2Fopenscap-cpe-oval.xml.result.xml
      -rw-r--r--. 1 root root  205399 Sep 22 13:36 ssg-rhel8-cpe-oval.xml.result.xml
      -rw-r--r--. 1 root root 6552807 Sep 22 13:36 ssg-rhel8-oval.xml.result.xml
      

      See https://github.com/OpenSCAP/openscap/pull/2037 for proposed fix.

      Please provide the package NVR for which bug is seen:

      All releases including Upstream 1.3 branch.

      How reproducible:

      Always, see above.

      Expected result:

      # ll
      total 6720
      -rw-r--r--. 1 root root  115783 Sep 22 14:17 openscap-cpe-oval.xml.result.xml
      -rw-r--r--. 1 root root  205399 Sep 22 14:17 ssg-rhel8-cpe-oval.xml.result.xml
      -rw-r--r--. 1 root root 6552807 Sep 22 14:17 ssg-rhel8-oval.xml.result.xml 

              jcerny@redhat.com Jan Cerny
              rhn-support-rmetrich Renaud Métrich
              Jan Cerny Jan Cerny
              Milan Lysonek Milan Lysonek
              Jan Fiala Jan Fiala
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: