[Inteproxy-devel] Problems with .htaccess-secured sites in normal webproxy-mode

Stephan Holl stephan.holl at intevation.de
Thu Apr 12 12:06:55 CEST 2007


while using InteProxy from trunk as a normal web-proxy with my brower
(firefox) I encountered a problem on basic-auth-secured
webpages. Whenever I visit such a website where normaly a
user/passwort dialog pops up, InteProxy dies with the following
exception and without prompting the dialog in the browser:

Traceback (most recent call last):
  File "InteProxy.py", line 312, in process_in_worker
    self.finish_request(request, client_address)
  File "SocketServer.py", line 254, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "SocketServer.py", line 521, in __init__
  File "BaseHTTPServer.py", line 316, in handle
  File "BaseHTTPServer.py", line 310, in handle_one_request
  File "InteProxy.py", line 77, in do_GET
  File "InteProxy.py", line 164, in handle_proxy_request
    response = urllib2.urlopen(request)
  File "urllib2.py", line 130, in urlopen
    return _opener.open(url, data)
  File "urllib2.py", line 364, in open
    response = meth(req, response)
  File "urllib2.py", line 471, in http_response
    response = self.parent.error(
  File "urllib2.py", line 396, in error
    result = self._call_chain(*args)
  File "urllib2.py", line 337, in _call_chain
    result = func(*args)
  File "urllib2.py", line 741, in http_error_401
    host, req, headers)
  File "urllib2.py", line 720, in http_error_auth_reqed
    return self.retry_http_basic_auth(host, req, realm)
  File "urllib2.py", line 723, in retry_http_basic_auth
    user, pw = self.passwd.find_user_password(realm, req.get_full_url())
  File "InteProxy.py", line 339, in find_user_password
    user, password = getpassword(title)
NameError: global name 'getpassword' is not defined



Stephan Holl <stephan.holl at intevation.de>, http://intevation.de/~stephan
Tel: +49 (0)541-33 50 8 32 | Intevation GmbH | AG Osnabrück - HR B 18998
Geschäftsführer:  Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.wald.intevation.org/pipermail/inteproxy-devel/attachments/20070412/59681297/signature.pgp

More information about the Inteproxy-devel mailing list