RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1440921 - Incorrect Link used by openscap
Summary: Incorrect Link used by openscap
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: scap-security-guide
Version: 7.3
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Watson Yuuma Sato
QA Contact: Marek Haicman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-10 18:32 UTC by Rupesh Patel
Modified: 2020-05-14 15:56 UTC (History)
4 users (show)

Fixed In Version: scap-security-guide-0.1.33-1.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-01 12:24:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:2064 0 normal SHIPPED_LIVE scap-security-guide bug fix and enhancement update 2017-08-01 16:05:50 UTC

Description Rupesh Patel 2017-04-10 18:32:57 UTC
[root@dhcp9-249 ~]# oscap xccdf eval --fetch-remote-resources --remediate --profile xccdf_org.ssgproject.content_profile_rht-ccp --results scan-xccdf-results.xml /usr/share/xml/scap/ssg/content/ssg-rhel7-ds.xml
Downloading: http://www.redhat.com/security/data/oval/Red_Hat_Enterprise_Linux_7.xml ... ok
OpenSCAP Error: Unable to parse XML from user memory buffer [oscap_source.c:254]
Failed to create OVAL definition model from: 'http://www.redhat.com/security/data/oval/Red_Hat_Enterprise_Linux_7.xml'. [xccdf_session.c:787]
[root@dhcp9-249 ~]#

Fix:-
https://github.com/OpenSCAP/scap-security-guide/pull/1341/files

Workaround:- 

#!/bin/bash

sed -i "s@http://www.redhat.com/security/data/oval/Red_Hat_Enterprise_Linux_7.xml@https://www.redhat.com/security/data/oval/com.redhat.rhsa-RHEL7.xml.bz2@" /usr/share/xml/scap/ssg/content/ssg-rhel7-ds.xml

Thanks Watson Yuuma Sato for pointing this out.

Comment 2 Martin Preisler 2017-04-13 20:02:45 UTC
Technically this is some issue in OpenSCAP because even the uncompressed file should work. However let's track when we changed the link in SSG in this ticket to keep it consistent with the opening description.

Fixed upstream in https://github.com/OpenSCAP/scap-security-guide/commit/ff78ff2ab389b8f2f05111e1cabf7158913aee5b

Related change (https) in https://github.com/OpenSCAP/scap-security-guide/commit/eafa644d89cada4f6935a14f877fdda54c9db5aa

Comment 3 Jan Černý 2017-04-18 13:32:14 UTC
The issue with XML file parsing is reproducible in OpenSCAP 1.2.10. It has been already fixed in OpenSCAP 1.2.11 by this patch: https://github.com/OpenSCAP/openscap/commit/bc9db8a31a977d8f7a89ff3d98df939d9269007b

Comment 6 Marek Haicman 2017-06-09 19:09:49 UTC
Verified fix in version scap-security-guide-0.1.33-4.el7.noarch

[root@localhost ~]$ rpm -qa scap-security-guide
scap-security-guide-0.1.33-4.el7.noarch

[root@localhost ~]$ grep 'www.redhat.com/security/data/oval' /usr/share/xml/scap/ssg/content/ssg-*
/usr/share/xml/scap/ssg/content/ssg-rhel6-ds.xml:                <check-content-ref href="https://www.redhat.com/security/data/oval/Red_Hat_Enterprise_Linux_6.xml"/>
/usr/share/xml/scap/ssg/content/ssg-rhel6-ds.xml:              <ns0:check-content-ref href="https://www.redhat.com/security/data/oval/Red_Hat_Enterprise_Linux_6.xml"/>
/usr/share/xml/scap/ssg/content/ssg-rhel6-xccdf.xml:            <check-content-ref href="https://www.redhat.com/security/data/oval/Red_Hat_Enterprise_Linux_6.xml"/>
/usr/share/xml/scap/ssg/content/ssg-rhel7-ds.xml:                <check-content-ref href="https://www.redhat.com/security/data/oval/com.redhat.rhsa-RHEL7.xml.bz2"/>
/usr/share/xml/scap/ssg/content/ssg-rhel7-ds.xml:              <ns0:check-content-ref href="https://www.redhat.com/security/data/oval/com.redhat.rhsa-RHEL7.xml.bz2"/>
/usr/share/xml/scap/ssg/content/ssg-rhel7-xccdf.xml:            <check-content-ref href="https://www.redhat.com/security/data/oval/com.redhat.rhsa-RHEL7.xml.bz2"/>

Note: rhel6 content has not been updated. This is OK, as openscap-1.2.13-2.el6.x86_64 can handle these just fine.

Comment 7 errata-xmlrpc 2017-08-01 12:24:43 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:2064


Note You need to log in before you can comment on or make changes to this bug.