[Yum] Basic auth fails in 1.97, works in previous versions

Joe Cooper joe at swelltech.com
Fri May 16 00:15:02 UTC 2003


Hi Seth and all,

I'm not sure if this is a bug of the Python urllib, or a new 'feature' 
of yum 1.97, but authentication information in the URL is no longer 
accepted by yum.  For example:

http://wiggum:ralph@domain.com/path/to/

Complains about 'ralph' not being a valid HTTP port.  Specifically:

Error getting file 
http://wiggum:ralph@update.swelltech.com/path/to/headers/header.info
[Errno 7] HTTP Error (InvalidURL): nonnumeric port: 
'ralph at update.swelltech.com'

This is on a Red Hat 9 system, freshly installed, with python-2.2.2-26.

Any thoughts?  (I'm going to dig in and see if I can spot this in yum 
itself, but I'm not so well-versed in python as to be confident I'll 
find it.  So pointers are welcome.)

Thanks!
-- 
Joe Cooper <joe at swelltech.com>
Web caching appliances and support.
http://www.swelltech.com




More information about the Yum mailing list