Description of problem: When proxy password has a '#' character, yum doesn't work and give the error below Version-Release number of selected component (if applicable): RHEL5.5 How reproducible: 100% Steps to Reproduce: 1) edit yum.conf as below proxy=http://localhost:3128 proxy_username=proxy_user proxy_password=#proxy_pas#sword 2)Up2date file is placed on /etc/sysconfig/rhn/up2date with following setting: enableProxy=1 httpProxy=localhost:3128 enableProxyAuth=1 proxyUser=proxy_user proxyPassword=#proxy_pas#sword [root@server ~]# yum install x3270-x11 Loading "rhnplugin" plugin Loading "security" plugin Running "config" handler for "security" plugin Config time: 0.082 Running "init" handler for "rhnplugin" plugin D: login(forceUpdate=False) invoked D: readCachedLogin invoked D: Checking pickled loginInfo, currentTime= 1288690735.86 , createTime= 1288688656.85 , expire-offset= 3600.0 D: readCachedLogin(): using pickled loginInfo set to expire at 1288692256.85 A protocol error occurred: Proxy Authentication Required , attempt #1, A protocol error occurred: Proxy Authentication Required , attempt #2, A protocol error occurred: Proxy Authentication Required , attempt #3, A protocol error occurred: Proxy Authentication Required , attempt #4, A protocol error occurred: Proxy Authentication Required , attempt #5, Error communicating with server. The message was: Proxy Authentication Required There was an error communicating with RHN. RHN channel support will be disabled. Error communicating with server. The message was: Proxy Authentication Required Yum Version: 3.2.22 COMMAND: yum install x3270-x11 Installroot: / Ext Commands: x3270-x11 Setting up Package Sacks Reading Local RPMDB rpmdb time: 0.000 Setting up Install Process Setting up Package Sacks Checking for virtual provide or file-provide for x3270-x11 Searching pkgSack for dep: x3270-x11 Setting up Package Sacks No package x3270-x11 available. Setting up Package Sacks Nothing to do Actual results: Yum error. Expected results: Yum works properly
what ver of python-iniparse do you have installed?
Hello Seth, python-iniparse-0.2.3-4.el5-noarch Best, mmm
I just did a simple test and it doesn't look like it is iniparse. Here's a simple test. make a file named test.ini: [test] name=user password=#this#password then run python and do: import iniparse c = iniparse.ConfigParser() c.read('test.ini') c.get('test', 'password') you should get back the complete string. so the next piece to check is urlgrabber in rhel5, which, ultimately, is going to be urllib[2] in python.
Marcelo, i'll see if I can figure out a nice way to test this. thanks
Fixed in spacewalk git by commit dd1b01cb1067d165f902cd7c72f9cc6a25993f98 650520 - allow # in password
Fixed in rhel5 branch Sending rhn-client-tools/src/up2date_client/config.py Transmitting file data . Committed revision 197656.
Hello team, Fix worked fine. Thank you.
Created attachment 461959 [details] Squid configuration file.
Verified. Package versions: rhn-client-tools-0.4.20-46.el5 yum-rhn-plugin-0.5.4-17.el5 Proxy: squid-2.6.STABLE21-6.el5 user: proxy_user pass: #proxy_pas#sword /etc/squid/squid.conf is in attachment #461959 [details]. Configuration files /etc/yum.conf and /etc/sysconfig/rhn/up2date modified as written in comment #1. Commands like yum install <package> and rhnreg_ks are working correctly, no proxy authentication error occured.
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Previously, using the hash sign (that is, "#") in a proxy password caused yum to fail with the following error: Error communicating with server. The message was: Proxy Authentication Required With this update, this error no longer occurs, and the use of this character no longer prevents yum from working.
An advisory 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 therefore 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/RHEA-2011-0112.html
Technical note updated. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. Diffed Contents: @@ -1,6 +1 @@ -Previously, using the hash sign (that is, "#") in a proxy password caused yum to fail with the following error: +Previously, using the hash sign (that is, "#") in a proxy password caused yum to fail with the following error: Error communicating with server. The message was: Proxy Authentication Required With this update, this error no longer occurs, and the use of this character no longer prevents yum from working.- - Error communicating with server. The message was: - Proxy Authentication Required - -With this update, this error no longer occurs, and the use of this character no longer prevents yum from working.