Bug 119089
Summary: | RFE: Add user-agent string to up2date/rhnsd (user modifiable) | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 3 | Reporter: | Chris Kloiber <ckloiber> |
Component: | rhnlib | Assignee: | Mihai Ibanescu <mihai.ibanescu> |
Status: | CLOSED ERRATA | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3.0 | CC: | tao |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-06-17 20:06:07 UTC | Type: | --- |
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: | 119505 |
Description
Chris Kloiber
2004-03-24 22:00:53 UTC
I've got a patch for this, will take a look for the next release. No, the only time it doesn't send an user-agent string is when it does the CONNECT to the http proxy to forward the SSL connections. Also, this is an rhnlib bug, not an up2date one, so reassining there. I seem to be cross my comments on this bug with another similar bug. Sorry. In addition, here is an rhnlib patch: --- rhnlib-1.3/rhn/connections.py.akl 2004-04-02 15:47:00.000000000 -0500 +++ rhnlib-1.3/rhn/connections.py 2004-04-02 15:47:29.000000000 -0500 @@ -154,7 +154,8 @@ userpass = "%s:%s" % (self.__username, self.__password) enc_userpass = string.strip(base64.encodestring(userpass)) self.putheader("Proxy-Authorization", "Basic %s" % enc_userpass) - + self.putheader("User-Agent", "rhnlib ssl connect") + class HTTPSConnection(HTTPConnection): response_class = HTTPResponse default_port = httplib.HTTPSConnection.default_port Theres a more sophisticated patch floating around, but I'm not convinces the extra code needed to make a configurable user-agent is worth it. Patch got into rhnlib-1.7 How important is this to make a backport of it? Is handing them the newer packages "good enough"? user configurable user-agent support is currently "notabug", and there are no currently no plans to add it. An errata has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2004-375.html This bug is against Red Hat Enterprise Linux 3. The errata mentioned only covers Red Hat Enterprise Linux 2.1 as far as I can tell. Will a seperate errata be issued? An errata has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2004-382.html |