Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1881343

Summary: sosreports upload using redhat-support-tool fail with strong passwords
Product: Red Hat Enterprise Linux 8 Reporter: Sujay <skhadkik>
Component: redhat-support-lib-pythonAssignee: Pranita Ghole <pghole>
Status: CLOSED ERRATA QA Contact: Miroslav HradĂ­lek <mhradile>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.0CC: cww, mhradile, pghole
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.0   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-18 15:43:51 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:

Description Sujay 2020-09-22 08:42:32 UTC
Description of problem:

When attempting to upload a case attachment using a strong password (60 characters) it fails:

[root@director1 ~]# redhat-support-tool addattachment -c 02755296 -d sosreport /var/tmp/sosreport-director1-02755296-2020-09-18-kunmxqd.tar.xz 
Please enter your RHN user ID: rhit_osp-002_uploader
Save the user ID in /root/.redhat-support-tool/redhat-support-tool.conf (y/n): n                                                           
Please enter the password for rhit_osp-002_uploader: 
Save the password for rhit_osp-002_uploader in /root/.redhat-support-tool/redhat-support-tool.conf (y/n): n
Uploading sosreport-director1-02755296-2020-09-18-kunmxqd.tar.xz to the case ...     failed.
ERROR: Problem encountered whilst uploading the attachment.  Please consult the Red Hat Support Tool logs for details.

...

2020-09-18 12:38:26,110 - redhat_support_tool.plugins.add_attachment - ERROR - ERROR: Problem encountered whilst uploading the attachment.  Please consult the Red Hat Support Tool logs for details.
2020-09-18 12:38:26,110 - redhat_support_tool.helpers.launchhelper - ERROR - Invalid header value b'Basic <REDAC>\n<TED>'
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/redhat_support_tool/helpers/launchhelper.py", line 106, in run
    return cls.non_interactive_action()
  File "/usr/lib/python3.6/site-packages/redhat_support_tool/plugins/add_attachment.py", line 437, in non_interactive_action
    useFtp=self.use_ftp)
  File "/usr/lib/python3.6/site-packages/redhat_support_lib/infrastructure/brokers.py", line 629, in add
    description)[0]
  File "/usr/lib/python3.6/site-packages/redhat_support_lib/infrastructure/proxy.py", line 83, in upload
    response = conn.doUpload(url, fileName, fileChunk, description)
  File "/usr/lib/python3.6/site-packages/redhat_support_lib/web/connection.py", line 123, in doUpload
    self._doUpload(url, fileName, fileChunk, description)
  File "/usr/lib/python3.6/site-packages/redhat_support_lib/web/connection.py", line 224, in _doUpload
    self.__connection.putheader(key, value)
  File "/usr/lib64/python3.6/http/client.py", line 1232, in putheader
    raise ValueError('Invalid header value %r' % (values[i],))
ValueError: Invalid header value b'Basic <REDAC>\n<TED>'

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 7 errata-xmlrpc 2021-05-18 15:43:51 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 (redhat-support-lib-python 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-2021:1824