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 1248378 - oscap does not handle non-decimal version of OVAL
Summary: oscap does not handle non-decimal version of OVAL
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: openscap
Version: 6.7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Šimon Lukašík
QA Contact: Marek Haicman
URL:
Whiteboard:
Depends On: 1202868 1248375 1248380
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-30 08:02 UTC by Ján Rusnačko
Modified: 2020-06-09 11:47 UTC (History)
5 users (show)

Fixed In Version: openscap-1.2.7-1.el6
Doc Type: Bug Fix
Doc Text:
Cause: The XSD schemas released by NIST and shipped within OpenSCAP project did only allowed for OVAL versions in form of X.Y. While the latest release of OVAL language 5.11.1 is in form of X.Y.Z Consequence: Some OpenSCAP commands, like DataStream compose (oscap ds sds-compose) were not working for content of the latest OVAL version. Fix: XSD schema incorporated in OpenSCAP project has been amended to allow for all known OVAL versions. Result: All OpenSCAP operations work well with latest OVAL content.
Clone Of: 1248375
Environment:
Last Closed: 2016-05-10 20:53:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2016:0806 0 normal SHIPPED_LIVE openscap bug fix and enhancement update 2016-05-10 22:38:33 UTC

Description Ján Rusnačko 2015-07-30 08:02:25 UTC
+++ This bug was initially created as a clone of Bug #1248375 +++

Description of problem:
oscap does not handle the non-decimal version of OVAL XMLs (e.g. 5.10.1) well:

File '/home/jrusnack/workspace/tmp/result.xml' line 6: Element
'{http://oval.mitre.org/XMLSchema/oval-common-5}schema_version': '5.10.1' is not
a valid value of the atomic type 'xs:decimal'. 


Version-Release number of selected component (if applicable):
1.1.1

Steps to Reproduce:
$ oscap ds sds-compose source.xml result.xml 

where source.xml is OVAL XML with 5.10.1 version

Comment 2 Šimon Lukašík 2015-07-31 08:36:09 UTC
Fixed in upstream, easy to backport.

Relevant upstream change: https://github.com/OpenSCAP/openscap/commit/0aa1a0d02046f26935aa0f3833e7edf531662237

Comment 5 Marek Haicman 2016-01-29 13:57:28 UTC
Verified fix on version openscap-1.2.8-1.el6

Comment 7 errata-xmlrpc 2016-05-10 20:53:23 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://rhn.redhat.com/errata/RHEA-2016-0806.html


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