bzr access to https://code.l.n redirects to http

Bug #901054 reported by Shaddy Baddah
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

I am behind a firewall whereby I can punch through for https, and then have to use a finicky windows domain integrated proxy for http. I elect not to use that proxy as much as possible, and try to "prefer" https when it is availab.e

I have tried to do this with a bzr branch, and have been met with this error:

ubuntu:~/workarea$ bzr branch --verbose https://code.launchpad.net/~ubuntu-core-dev/binutils/pkg-ubuntu binutils-pkg-ubuntu
bzr: ERROR: Connection error: while sending POST /~ubuntu-core-dev/binutils/pkg-ubuntu/.bzr/smart: [Errno 110] Connection timed out

strace shows that there was an attempt to connect to the http, instead of the https server:

afro-ubuntu:~$ sudo strace -fp 8432
Process 8432 attached - interrupt to quit
connect(6, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("91.189.90.11")}, 16^C <unfinished ...>
Process 8432 detached

To me this is a bug. I've specified a https method, so I would expect bzr not to stray. I don't have an ftp methoded URL to try, but I wonder if this would happen for ftp as well.

Tags: lp-code bzr
Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 901054] [NEW] branch over https tries POST on http

which version of bzr is this, please?

please post the backtrace you can find in ~/.bzr.log.

Revision history for this message
Shaddy Baddah (shaddy-baddah) wrote : Re: branch over https tries POST on http

This affects version 2.4.1-1ubuntu1 of bzr.

$ lsb_release -r
Release: 11.10

.bzr.log attached.

Revision history for this message
Martin Pool (mbp) wrote :

The reason for this is that <https://code.launchpad.net/~ubuntu-core-dev/binutils/pkg-ubuntu/.bzr/branch/location> points to <http://bazaar.launchpad.net/~ubuntu-core-dev/binutils/pkg-ubuntu>, which is perhaps a bit strange. It is purely a launchpad server-side bug. Perhaps lp should point to https instead.

As a workaround you can just use an https://bazaar.launchpad.net/... url or even better bzr+ssh://bazaar.launchpad.net/...

no longer affects: bzr (Ubuntu)
summary: - branch over https tries POST on http
+ bzr access to https://code.l.n redirects to http
Changed in launchpad:
status: New → Triaged
importance: Undecided → Low
tags: added: code-integration
Curtis Hovey (sinzui)
tags: added: bzr lp-code
removed: code-integration
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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