bzr-svn crashes on branch with exception 170000

Bug #211683 reported by Chandler Carruth
4
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Fix Released
Undecided
Jelmer Vernooij

Bug Description

Here is the exact command sequence:
--------
> bzr branch svn+https://rcons.svn.sourceforge.net/svnroot/rcons/trunk rcons
bzr: ERROR: svn.core.SubversionException: ("Unrecognized URL scheme for 'https://rcons.svn.sourceforge.net/svnroot/rcons/trunk'", 170000)

Traceback (most recent call last):
  File "/usr/lib64/python2.5/site-packages/bzrlib/commands.py", line 834, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib64/python2.5/site-packages/bzrlib/commands.py", line 790, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib64/python2.5/site-packages/bzrlib/commands.py", line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib64/python2.5/site-packages/bzrlib/builtins.py", line 897, in run
    from_location)
  File "/usr/lib64/python2.5/site-packages/bzrlib/bzrdir.py", line 773, in open_tree_or_branch
    bzrdir = klass.open(location)
  File "/usr/lib64/python2.5/site-packages/bzrlib/bzrdir.py", line 650, in open
    t = get_transport(base, possible_transports=possible_transports)
  File "/usr/lib64/python2.5/site-packages/bzrlib/lazy_import.py", line 125, in __call__
    return obj(*args, **kwargs)
  File "/usr/lib64/python2.5/site-packages/bzrlib/transport/__init__.py", line 1610, in get_transport
    transport, last_err = _try_transport_factories(base, factory_list)
  File "/usr/lib64/python2.5/site-packages/bzrlib/transport/__init__.py", line 1632, in _try_transport_factories
    return factory.get_obj()(base), None
  File "/usr/lib64/python2.5/site-packages/bzrlib/plugins/svn/errors.py", line 119, in convert
    raise convert_error(e)
SubversionException: ("Unrecognized URL scheme for 'https://rcons.svn.sourceforge.net/svnroot/rcons/trunk'", 170000)

bzr 1.3 on python 2.5.1.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'branch', 'svn+https://rcons.svn.sourceforge.net/svnroot/rcons/trunk', 'rcons']
encoding: 'ANSI_X3.4-1968', fsenc: 'ANSI_X3.4-1968', lang: 'C'
plugins:
  bzrtools /usr/lib64/python2.5/site-packages/bzrlib/plugins/bzrtools [1.3.0]
  launchpad /usr/lib64/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  svn /usr/lib64/python2.5/site-packages/bzrlib/plugins/svn [0.4.9]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.
--------

Here is svn --version output to verify what version of subversion, and the support for https protocol:
-------
e> svn --version
svn, version 1.5.0 (dev build)
   compiled Apr 3 2008, 23:13:47

Copyright (C) 2000-2008 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
  - handles 'http' scheme
  - handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme

--------

Additionally, running "svn co" on the same URL works fine.

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

Please use a more recent version of bzr-svn. This bug was fixed in 0.4.3 I believe.

Changed in bzr-svn:
assignee: nobody → jelmer
status: New → Fix Released
Revision history for this message
Chandler Carruth (chandlerc) wrote :

My package manager assures me I'm using 0.4.9, and the following from bzr's output above seems to agree:

bzr 1.3 on python 2.5.1.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'branch', 'svn+https://rcons.svn.sourceforge.net/svnroot/rcons/trunk', 'rcons']
encoding: 'ANSI_X3.4-1968', fsenc: 'ANSI_X3.4-1968', lang: 'C'
plugins:
  bzrtools /usr/lib64/python2.5/site-packages/bzrlib/plugins/bzrtools [1.3.0]
  launchpad /usr/lib64/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  svn /usr/lib64/python2.5/site-packages/bzrlib/plugins/svn [0.4.9]

So I think I'm running the most recent version available. I'd be happy to pull down a fresh copy from the repository and try that if you think that would help.

-Chandler

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

Are you sure that your subversion library understands https? I can't reproduce this bug here branching from rcons using 0.4.9.

Revision history for this message
Chandler Carruth (chandlerc) wrote :

I can do the branch using subversion 1.4.6 (patched appropriately). I'm going to see if I can reproduce again with the 1.5.x Subversion branch.

Revision history for this message
Chris Perkins (chris-percious) wrote :

I am also experiencing this problem.

I have made a branch in my svn repo, made some changes to that branch, and I am trying to do a local commit. I have svn 1.5.1, bzr-svn 0.4.11rc1. I am running OS X Leopard.

Here is the dump. Let me know if there is anything I can do to help you debug this problem.

percious-macbook:coop_resource_ass percious$ bzr ci
bzr: ERROR: bzrlib.plugins.svn.core.SubversionException: ("Unrecognized URL scheme for 'http://10.1.10.201/svn/mvp2/branches/coop_resource_ass'", 170000)

Traceback (most recent call last):
  File "/usr/local/lib/python2.5/site-packages/bzr-1.6rc3-py2.5-macosx-10.3-i386.egg/bzrlib/commands.py", line 857, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/local/lib/python2.5/site-packages/bzr-1.6rc3-py2.5-macosx-10.3-i386.egg/bzrlib/commands.py", line 797, in run_bzr
    ret = run(*run_argv)
  File "/usr/local/lib/python2.5/site-packages/bzr-1.6rc3-py2.5-macosx-10.3-i386.egg/bzrlib/commands.py", line 499, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/local/lib/python2.5/site-packages/bzr-1.6rc3-py2.5-macosx-10.3-i386.egg/bzrlib/builtins.py", line 2247, in run
    tree, selected_list = tree_files(selected_list)
  File "/usr/local/lib/python2.5/site-packages/bzr-1.6rc3-py2.5-macosx-10.3-i386.egg/bzrlib/builtins.py", line 64, in tree_files
    return internal_tree_files(file_list, default_branch)
  File "/usr/local/lib/python2.5/site-packages/bzr-1.6rc3-py2.5-macosx-10.3-i386.egg/bzrlib/builtins.py", line 88, in internal_tree_files
    return WorkingTree.open_containing(default_branch)[0], file_list
  File "/usr/local/lib/python2.5/site-packages/bzr-1.6rc3-py2.5-macosx-10.3-i386.egg/bzrlib/workingtree.py", line 327, in open_containing
    return control.open_workingtree(), relpath
  File "/Users/percious/.bazaar/plugins/svn/workingtree.py", line 815, in open_workingtree
    return SvnWorkingTree(self, self.local_path, self.open_branch())
  File "/Users/percious/.bazaar/plugins/svn/workingtree.py", line 861, in open_branch
    repos = self._find_repository()
  File "/Users/percious/.bazaar/plugins/svn/workingtree.py", line 839, in _find_repository
    return SvnRepository(self, self.get_remote_transport().clone_root(),
  File "/Users/percious/.bazaar/plugins/svn/workingtree.py", line 807, in get_remote_transport
    self._remote_transport = SvnRaTransport(self.svn_url)
  File "/Users/percious/.bazaar/plugins/svn/errors.py", line 151, in convert
    raise convert_error(e)
SubversionException: ("Unrecognized URL scheme for 'http://10.1.10.201/svn/mvp2/branches/coop_resource_ass'", 170000)

bzr 1.6rc3 on python 2.5.2 (darwin)
arguments: ['/usr/local/bin/bzr', 'ci']
encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_US.UTF-8'
plugins:
  launchpad /usr/local/lib/python2.5/site-packages/bzr-1.6rc3-py2.5-macosx-10.3-i386.egg/bzrlib/plugins/launchpad [unknown]
  svn /Users/percious/.bazaar/plugins/svn [0.4.11rc1]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

cheers.
-chris

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

Hi Chris,

It looks like your Subversion wasn't built with support for http. You will need to recompile it and configure with the right options.

Cheers,

Jelmer

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.