Bug 1905567

Summary: compliance/scap_contents/bulk_upload API endpoint not working.
Product: Red Hat Satellite Reporter: Jameer Pathan <jpathan>
Component: SCAP PluginAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Jameer Pathan <jpathan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.9.0CC: mhulan, oprazak, pcreech, zhunting
Target Milestone: 6.9.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-foreman_openscap-4.1.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-21 13:24:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1905041    

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