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 732209

Summary: When proxy password has a '#' character, yum doesn't work
Product: Red Hat Enterprise Linux 6 Reporter: Dimitar Yordanov <dyordano>
Component: rhn-client-toolsAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED ERRATA QA Contact: Jan Hutař <jhutar>
Severity: high Docs Contact:
Priority: high    
Version: 6.1CC: dyordano, jhutar, jlau, jwest, mmello, mmraka, pnovotny, slukasik
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rhn-client-tools-1.0.0-71.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 650520 Environment:
Last Closed: 2011-12-06 16:49:51 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: 650520    
Bug Blocks: 743047    
Attachments:
Description Flags
NCSA Auth Configuration Squid none

Comment 2 Dimitar Yordanov 2011-08-20 18:37:54 UTC
Created attachment 519154 [details]
NCSA Auth Configuration Squid

Comment 3 Dimitar Yordanov 2011-08-20 18:54:43 UTC
Hi,
 I come a cross the same problem on RHEL6.1.
 yum-rhn-plugin-0.9.1-26.el6_1.1.noarch

 I have set two testing HTTP Proxy Squid configurations with Authentication:
    NCSA Authentication 
    PAM  Authentication

I have tested with those User names and Passwords.

PROXY_USER="proxy_user_${RANDOM}"
PROXY_PASS='proxy_password'
NCSA PASS
PAM  PASS

PROXY_USER="proxy_user_${RANDOM}"
PROXY_PASS='#proxypassword'
NCSA - FAIL 
PAM  - FAIL

PROXY_USER="proxy_user_${RANDOM}"
PROXY_PASS='proxy#password'
NCSA - FAIL
PAM  - FAIL

I have just noticed one weird  scenario:

1. Register to  rhn.errata.stage.redhat.com
2. Sqiud Configuration /etc/squid/squid.conf -- See attachment
3. Restart Squid: service squid restart
4. Configure yum - /etc/sysconfig/rhn/up2date
   enableProxy=1
   httpProxy=localhost:3128
   enableProxyAuth=1

htpasswd -cb /etc/squid/passwd  proxy_1      'ddddddd#' 
yum remove zsh -y
sed -i.bak 's|^\(proxyPassword=\).*|\1ddddddd#|;s|^\(proxyUser=\).*|\1proxy_1|'
/etc/sysconfig/rhn/up2date;
diff /etc/sysconfig/rhn/up2date{.bak,}
yum install zsh -y
FAIL
---
htpasswd -cb /etc/squid/passwd  proxy_2    'dddddddd#' 
yum remove zsh -y
sed -i.bak
's|^\(proxyPassword=\).*|\1dddddddd#|;s|^\(proxyUser=\).*|\1proxy_2|'
/etc/sysconfig/rhn/up2date;
diff /etc/sysconfig/rhn/up2date{.bak,}
yum install zsh -y 
PASS

It seems it is somehow depends on the Password length.
If the password length is more than 8 it passes.
I think the problem could be in "htpasswd".

Comment 4 Milan Zázrivec 2011-09-09 09:28:51 UTC
satellite.git CLIENT-RHEL-6: d1a16251bbd171ed0db1fb07dc2eab81267abc57

Comment 7 errata-xmlrpc 2011-12-06 16:49: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, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1664.html