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 1423007 - yum-rhn-plugin sending malformed request header
Summary: yum-rhn-plugin sending malformed request header
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: yum-rhn-plugin
Version: 7.4
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Tomáš Kašpárek
QA Contact: Pavel Studeník
URL:
Whiteboard:
Depends On: 1423003
Blocks: 1423004 1426701 1426702 1426704
TreeView+ depends on / blocked
 
Reported: 2017-02-16 20:31 UTC by Grant Gainey
Modified: 2017-08-01 22:19 UTC (History)
10 users (show)

Fixed In Version: yum-rhn-plugin-2.0.1-7.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1423003
: 1426701 1426702 1426704 (view as bug list)
Environment:
Last Closed: 2017-08-01 22:19:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1422518 1 None None None 2021-01-20 06:05:38 UTC
Red Hat Product Errata RHBA-2017:2039 0 normal SHIPPED_LIVE rhn-client-tools, rhnlib, rhnsd, and yum-rhn-plugin bug fix update 2017-08-01 19:33:28 UTC

Internal Links: 1422518

Description Grant Gainey 2017-02-16 20:31:12 UTC
+++ This bug was initially created as a clone of Bug #1423003 +++

Description of problem:

The yum-rhn-plugin sends http-headers that are separated by only a newline, when the spec requires CRLF.

In the presence of an httpd which enforces the spec, this results in any attempt to update/install content returning

error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 400 Bad Request"

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

The bug was introduced in yum-rhn-plugin-0.8.4-1. The problem was harmless until uncovered by fixes for httpd that tightened whitespace processing.

How reproducible:

See https://bugzilla.redhat.com/show_bug.cgi?id=1422518 for gory details. The net is, 'yum update a system that is talking to a satellite-5 whose httpd is at 2.2.15-60 or higher'.

Actual results:

error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 400 Bad Request"

Expected results:

successful install/update of packages.

Additional info:

This BZ is for getting the client-side fix in place for RHEL7, BZ#1422518 is for getting a workaround in place on the Satellite5 backend.

--- Additional comment from Grant Gainey on 2017-02-16 15:18:50 EST ---

We need to fix this in active z-streams as well

Comment 1 Grant Gainey 2017-02-16 20:38:07 UTC
Proposed solution:

https://github.com/spacewalkproject/spacewalk/pull/506

Comment 2 Tomas Lestach 2017-02-20 08:16:15 UTC
Fix available in upstream ...

spacewalk.git: f53a791847105cf422f9fbb41dcb41eeb018c6be

Comment 10 Pavel Studeník 2017-06-29 14:32:42 UTC
Verified with yum-rhn-plugin-2.0.1-9.el7.noarch.rpm

Reproducer:

remove the option "HTTPProtocolOptions unsafe" in /etc/httpd/conf.d/ssl.conf

Comment 11 errata-xmlrpc 2017-08-01 22:19:00 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, 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-2017:2039


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