Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 119089 - RFE: Add user-agent string to up2date/rhnsd (user modifiable)
Summary: RFE: Add user-agent string to up2date/rhnsd (user modifiable)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: rhnlib
Version: 3.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Mihai Ibanescu
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: up2date-rhel3-u2
TreeView+ depends on / blocked
 
Reported: 2004-03-24 22:00 UTC by Chris Kloiber
Modified: 2007-11-30 22:07 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-06-17 20:06:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2004:375 0 normal SHIPPED_LIVE Updated rhnlib package 2004-08-18 04:00:00 UTC
Red Hat Product Errata RHBA-2004:382 0 normal SHIPPED_LIVE Updated rhnlib package 2004-09-02 04:00:00 UTC

Description Chris Kloiber 2004-03-24 22:00:53 UTC
Description of problem:

An enterprise customer is requesting we allow him the ability to
change the user-agent string generated by http(s) requests from
up2date and rhnsd. This will allow him to allow up2date to pass
through his restrictive corporate firewall unimpeded.

My testing using Squid configured to log user-agent strings shows that
up2date currintly generates *no* user-agent string when communicating
with the server, and it's hard to filter/allow on nulls.

Comment 1 Adrian Likins 2004-03-30 23:15:39 UTC
I've got a patch for this, will take a look for the next release.

Comment 2 Adrian Likins 2004-04-05 19:50:23 UTC
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. 

Comment 3 Adrian Likins 2004-04-07 19:19:46 UTC
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.


Comment 4 Mihai Ibanescu 2004-04-12 19:56:24 UTC
Patch got into rhnlib-1.7
How important is this to make a backport of it? Is handing them the
newer packages "good enough"?

Comment 8 Adrian Likins 2004-06-17 20:06:07 UTC
user configurable user-agent support is currently "notabug",
and there are no currently no plans to add it.

Comment 9 John Flanagan 2004-08-18 14:34:09 UTC
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


Comment 10 Chris Kloiber 2004-08-23 22:40:07 UTC
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?

Comment 11 Jay Turner 2004-09-02 05:21:35 UTC
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



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