bzr branch not supporting "Proxy Authentication"

Bug #87290 reported by jayesh
2
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Undecided
Vincent Ladeuil

Bug Description

$bzr version
0.14

$python
2.4.1

$http_proxy
http://name:passwd@192.168.1.1:3128

$bzr branch http://bazaar-vcs.org/bzr/bzr.dev bzr.dev
bzr: ERROR: Invalid http response for http://bazaar-vcs.org/bzr/bzr.dev/.bzr/branch-format: Unable to handle http code 407: Proxy Authentication Required

In Module
 .../bzrlib/transport/http/_urllib2_wrappers.py
In Function " def http_response(self, request, response)"

(pdb) request.headers
{'Accept': '*/*', 'User-agent': 'bzr/0.14.0 (urllib)', 'Connection': 'Keep-Alive', 'Proxy-authorization': 'Basic name:passwd', 'Pragma': 'no-cache', 'Cache-control': 'max-age=0'}
(Pdb) response.code
407
(Pdb) response.headers.headers
['Server: squid/2.5.STABLE3\r\n', 'Mime-Version: 1.0\r\n', 'Date: Fri, 23 Feb 2007 10:09:33 GMT\r\n', 'Content-Type: text/html\r\n', 'Content-Length: 1416\r\n', 'Expires: Fri, 23 Feb 2007 10:09:33 GMT\r\n', 'X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0\r\n', 'Proxy-Authenticate: Basic realm="xxxxx"\r\n', 'X-Cache: MISS from epicure.zeomega.org\r\n', 'Proxy-Connection: keep-alive\r\n']

jayesh (jayesh-mail)
description: updated
Revision history for this message
Vincent Ladeuil (vila) wrote :

This a known limitation of the current implementation.

Have you tried embedding user and password in your proxy env variable ?

Changed in bzr:
assignee: nobody → v-ladeuil
status: Unconfirmed → Needs Info
Revision history for this message
jayesh (jayesh-mail) wrote :

>>>Have you tried embedding user and password in your proxy env variable ?

yes

bash-3.00$ echo $http_proxy
http://name:passwd@192.168.1.1:3128

Revision history for this message
Vincent Ladeuil (vila) wrote :

<cough> Sorry. Yes of course.

Ok. So this have been fixed in revno 2279 of bzr.dev.

Thanks for your detailed report, I miss the $http_proxy at first read.

Changed in bzr:
status: Needs Info → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.