Bug 2148508

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

Description Jan Stodola 2022-11-25 17:28:33 UTC
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 2 Jan Stodola 2022-11-25 17:33:52 UTC
Also reproducible on RHEL-8, reported as bug 2148509.

Comment 11 errata-xmlrpc 2023-05-09 07:44:14 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:2295