Bzr ignore proxy exception on Windows

Bug #330570 reported by Lionel Dricot
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Undecided
Unassigned

Bug Description

I'm connecting on a http smartserver which is in our LAN. So it's in the proxy exception.

On linux, bzr checkout both work with http://server/bzr/repository and bzr+http://server/bzr/repository

On Windows, it seems that bzr doesn't use the proxy exceptions. So I tried with the IP :

bzr checkout http://192.168.1.2/bzr/repository
bzr: ERROR: Transport error: Server refuses to fulfill the request <403 Forbidden> for http://192.168.1.2/bzr/repository/.bzr/branch format

bzr checkout bzr+http://192.168.1.2/bzr/repository
bzr: ERROR: Generic bzr smart protocol error: Invalid http response for http://192.168.1.2/bzr/repository/.bzr/smart: Unknown response code 403

This doesn't look like a proxy misconfiguration because the browser can access the repository when the IP is entered (or the server name because it handles proxy exception)

Revision history for this message
Lionel Dricot (ploum-deactivatedaccount) wrote :

In fact, it seems that bazaar ignore the proxy exceptions and, for whatever reason, always redirect all to the proxy.

The workaround : in Internet Explorer, disable the proxy. Unfortunatly, it disables the proxy for all application

Is there a way to disable the proxy only for bazaar sor TortoiseBzr will work with local repository ? (it doesn't need to handle repository over the proxy and it doesn't work anyway)

Changed in bzr:
status: New → Confirmed
Revision history for this message
Raphael Barabas (irgendwoanders) wrote :

You can control Bazaars proxy behavior with environment variables. If one of those is set, bzr will ignore the IE settings.
HTTP_PROXY
HTTPS_PROXY
NO_PROXY

So in Windows use something like this: SET NO_PROXY=192.168.0.0/24 and bazaar will work without proxy.
Or use SET HTTP_PROXY=http://192.168.1.1:8080/ and bazaar will use the proxy specified.

You can make it permanent by using the dialog "System properties -> advanced -> user variables"

Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
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.