Bug 1905567 - compliance/scap_contents/bulk_upload API endpoint not working.
Summary: compliance/scap_contents/bulk_upload API endpoint not working.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: SCAP Plugin
Version: 6.9.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.9.0
Assignee: satellite6-bugs
QA Contact: Jameer Pathan
URL:
Whiteboard:
Depends On:
Blocks: 1905041
TreeView+ depends on / blocked
 
Reported: 2020-12-08 15:07 UTC by Jameer Pathan
Modified: 2021-04-21 13:24 UTC (History)
4 users (show)

Fixed In Version: tfm-rubygem-foreman_openscap-4.1.2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-21 13:24:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 31475 0 Normal Closed compliance/scap_contents/bulk_upload API endpoint not working. 2021-01-11 07:27:40 UTC
Red Hat Product Errata RHSA-2021:1313 0 None None None 2021-04-21 13:24:48 UTC

Description Jameer Pathan 2020-12-08 15:07:05 UTC
Description of problem:
compliance/scap_contents/bulk_upload API endpoint not working.

Version-Release number of selected component (if applicable):
- Satellite 6.9.0 snap 4

How reproducible:
- Always

Steps to Reproduce:
1. curl -k -u "admin:changeme" -X POST -H "Content-Type: application/json; charset=UTF-8" https://satellite.example.com/api/compliance/scap_contents/bulk_upload -d '{"type": "default"}'

Actual results:
{
  "error": {"message":"uninitialized constant ForemanOpenscap::BulkUpload"}
}

Expected results:
Default Scap content uploaded to Satellite successfully.

Additional info:

Comment 1 Ondřej Pražák 2020-12-08 15:23:30 UTC
Created redmine issue https://projects.theforeman.org/issues/31475 from this bug

Comment 2 Bryan Kearney 2020-12-10 12:05:43 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/31475 has been resolved.

Comment 5 Jameer Pathan 2021-01-12 11:40:15 UTC
Verified

Verified with:
- tfm-rubygem-foreman_openscap-4.1.2-1.el7sat.noarch
- satellite 6.9.0 snap 8

Test steps:
1. curl -k -u "admin:changeme" -X POST -H "Content-Type: application/json; charset=UTF-8" https://satellite.example.com/api/compliance/scap_contents/bulk_upload -d '{"type": "default"}'

Observation:
Default Scap content uploaded to Satellite successfully.

Comment 8 errata-xmlrpc 2021-04-21 13:24: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 (Moderate: Satellite 6.9 Release), 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/RHSA-2021:1313


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