bzr-svn breaks https:// urls?

Bug #424626 reported by Steve Langasek
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Fix Released
High
Jelmer Vernooij
bzr-svn (Debian)
Fix Released
Undecided
Jelmer Vernooij
bzr-svn (Ubuntu)
Fix Released
Undecided
Jelmer Vernooij

Bug Description

Binary package hint: bzr-svn

Recently, bzr has been failing when trying to do checkouts of https:// urls:

$ bzr co https://code.launchpad.net/~hardware-certification/checkbox/trunk
bzr: ERROR: A Subversion remote access command failed: Server sent unexpected return value (405 Method Not Allowed) in response to OPTIONS request for 'https://code.launchpad.net/~hardware-certification/checkbox/trunk'
$

I initially thought it was user error, but I'm seeing this with package Vcs-Bzr values that I know used to work.

Checking out with lp: URIs works fine, but then these map to bzr+ssh instead of https anyway.

ProblemType: Bug
Architecture: amd64
Date: Fri Sep 4 16:40:59 2009
DistroRelease: Ubuntu 9.10
Package: bzr-svn 0.6.4-1ubuntu1
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-9.29-generic
SourcePackage: bzr-svn
Uname: Linux 2.6.31-9-generic x86_64

Related branches

Revision history for this message
Steve Langasek (vorlon) wrote :
Revision history for this message
David Tomaschik (matir) wrote :

I think you have the wrong binary package, as there's nothing subversion related going on here. It should probably be just plain 'bzr'. (Updating as such.)

Also, I am unable to reproduce this on my system. Can you post apt-cache policy bzr?

bzr:
  Installed: 1.18-0ubuntu1
  Candidate: 1.18-0ubuntu1
  Version table:
 *** 1.18-0ubuntu1 0
        500 http://us.archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status

affects: bzr-svn (Ubuntu) → bzr (Ubuntu)
description: updated
summary: - bzr-svn breaks https:// urls?
+ bzr breaks https:// urls?
Revision history for this message
Steve Langasek (vorlon) wrote : Re: bzr breaks https:// urls?

Except for, er, the error message that *says* Subversion, and that removing the bzr-svn package is sufficient to correct the problem?

I think you didn't have bzr-svn installed on your system when you tried to reproduce this.

affects: bzr (Ubuntu) → bzr-svn (Ubuntu)
summary: - bzr breaks https:// urls?
+ bzr-svn breaks https:// urls?
description: updated
Revision history for this message
David Tomaschik (matir) wrote :

You're right, my apologies. I did, however, have bzr-svn installed on my system at the time I tested this. Oddly enough, my main user has no problem, but a new user gets the same message you do.

Weirdly, the bzr-svn package only registers a handler for svn+https, so it SHOULDN'T be intercepting https requests.

Again, sorry for my confusion.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

This is a known issue, fixed in newer versions of bzr-svn.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

> Weirdly, the bzr-svn package only registers a handler for svn+https, so it SHOULDN'T be intercepting https requests.

There is an existing transport for https:// registered that bzr-svn can also use.

Revision history for this message
Joseph Wakeling (webdrake) wrote :

Any chance of getting the newer version into Ububtu Karmic? The current version (0.6.4) still displays these problems ... :-(

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

There is a 0.6.5 in Debian now that should work better. Any chance
this could be synced over to Karmic?

Revision history for this message
James Westby (james-w) wrote : Re: [Bug 424626] Re: bzr-svn breaks https:// urls?

On Sat Sep 05 07:22:41 UTC 2009 Jelmer Vernooij wrote:
> This is a known issue, fixed in newer versions of bzr-svn.

Hi Jelmer,

I don't see immediately which revision between 0.6.4 and 0.6.5
would fix this bug, but I assume it is fixed in the 0.6.5 that
you uploaded to Debian?

Thanks,

James

Revision history for this message
Steve Langasek (vorlon) wrote :

On Tue, Sep 08, 2009 at 04:04:09PM -0000, Jelmer Vernooij wrote:
> There is a 0.6.5 in Debian now that should work better. Any chance
> this could be synced over to Karmic?

Does it need a feature freeze exception?

--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer http://www.debian.org/
<email address hidden> <email address hidden>

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Sorry, my assessment was premature. This problem was fixed for bzr+httplib users in bzr-svn 0.6.4 but is still there for people who have pycurl installed and that has not yet been fixed for 0.6.5.

Changed in bzr-svn:
status: New → Triaged
importance: Undecided → Medium
importance: Medium → High
Changed in bzr-svn (Ubuntu):
status: New → Confirmed
Changed in bzr-svn:
assignee: nobody → Jelmer Vernooij (jelmer)
Changed in bzr-svn (Debian):
assignee: nobody → Jelmer Vernooij (jelmer)
Revision history for this message
James Westby (james-w) wrote :

On Tue Sep 08 17:08:38 UTC 2009 Steve Langasek wrote:
> On Tue, Sep 08, 2009 at 04:04:09PM -0000, Jelmer Vernooij wrote:
> > There is a 0.6.5 in Debian now that should work better. Any chance
> > this could be synced over to Karmic?
>
> Does it need a feature freeze exception?

Yes, but only for tiny tiny features, I was planning to request one once
I heard back from Jelmer here.

Thanks,

James

Jelmer Vernooij (jelmer)
Changed in bzr-svn:
milestone: none → 1.0.0
Jelmer Vernooij (jelmer)
Changed in bzr-svn (Debian):
status: New → Fix Released
Changed in bzr-svn:
status: Triaged → Fix Released
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Should be fixed - we now have a hack to probe for Subversion repositories using pycurl.

Fetching this URL still fails, but with a more appropriate error:

jelmer@ganieda:~/tmp$ bzr co https://code.launchpad.net/~hardware-certification/checkbox/trunk cb
bzr: ERROR: Invalid http response for https://code.launchpad.net/~hardware-certification/checkbox/trunk/.bzr/branch-format: Unable to handle http code 405: expected 200 or 404 for full response.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

FWIW, a workaround for this problem is uninstalling pycurl or using http+urllib:// in bzr.

Revision history for this message
Steve Langasek (vorlon) wrote :

Issue still appears to be present, even with bzr-svn 1.0.0-1 installed:

$ bzr co https://code.launchpad.net/~ubuntu-desktop/gnome-screensaver/ubuntu gnome-screensaver
bzr: ERROR: A Subversion remote access command failed: Server sent unexpected return value (405 Method Not Allowed) in response to OPTIONS request for 'https://code.launchpad.net/~ubuntu-desktop/gnome-screensaver/ubuntu'
$

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

You need the trunk version of bzr-svn, the fix isn't included in the bzr-svn packages in either Debian or Ubuntu (yet).

Changed in bzr-svn (Debian):
status: Fix Released → Confirmed
Jelmer Vernooij (jelmer)
Changed in bzr-svn (Debian):
status: Confirmed → Fix Released
Changed in bzr-svn (Ubuntu):
assignee: nobody → Jelmer Vernooij (jelmer)
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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