Bug 2148509

Summary: [RHEL-8] ValueError: not enough values to unpack (expected 2, got 1)
Product: Red Hat Enterprise Linux 8 Reporter: Jan Stodola <jstodola>
Component: oscap-anaconda-addonAssignee: Matěj Týč <matyc>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.8CC: mhaicman, pberanek, wsato
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: oscap-anaconda-addon-1.2.1-11.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-16 08:36:35 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: 2129764    

Description Jan Stodola 2022-11-25 17:32:58 UTC
This bug was initially created as a copy of Bug #2148508

I am copying this bug because: 
The same problem exists on RHEL-8 with oscap-anaconda-addon-1.2.1-10.el8.


Description of problem:
The installation fails with a traceback when "http" is entered into the field for fetching content from an external source:

anaconda 34.25.2.2 exception report
Traceback (most recent call first):
  File "/usr/share/anaconda/addons/org_fedora_oscap/content_discovery.py", line 91, in content_uri
    scheme, path = uri.split("://", 1)
  File "/usr/share/anaconda/addons/org_fedora_oscap/content_discovery.py", line 104, in fetch_content
    self.content_uri = self._addon_data.content_url
  File "/usr/share/anaconda/addons/org_fedora_oscap/gui/spokes/oscap.py", line 407, in _fetch_data_and_initialize
    thread_name = self.content_bringer.fetch_content(
  File "/usr/share/anaconda/addons/org_fedora_oscap/gui/spokes/oscap.py", line 1202, in on_fetch_button_clicked
    self._fetch_data_and_initialize()
ValueError: not enough values to unpack (expected 2, got 1)

Version-Release number of selected component (if applicable):
oscap-anaconda-addon-2.0.0-14.el9

How reproducible:
Always

Steps to Reproduce:
1. Start a graphical installation
2. Proceed to the "Security Profile" spoke and click the "Change content" button.
3. Enter "http" to the text field and click "Fetch"

Actual results:
Anaconda traceback.

Expected results:
An error message printed, able to provide a correct URL and continue with the installation.

Comment 10 errata-xmlrpc 2023-05-16 08:36:35 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 (oscap-anaconda-addon bug fix and enhancement update), 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-2023:2828