bzr-svn crashes on checkout with empty password

Bug #1198487 reported by trian
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
New
Undecided
Unassigned

Bug Description

I'm trying to check out the svn listed here: http://www.simutrans.com/en/develop
SVN: svn://tron.homeunix.org/simutrans/simutrans/Username: anon, No password

Using svn works: svn checkout svn://tron.homeunix.org/simutrans/simutrans/

This is the error I get using bazaar:

trian@KLOTZ:~/my/deb-building/simutrans-svn$ bzr checkout svn://tron.homeunix.org/simutrans/simutrans/
bzr: ERROR: exceptions.ValueError: prompt '<svn://tron.homeunix.org:3690> 8aca7d54-2c30-db11-9de9-000461428c89 anon password: ' not a unicode string

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 930, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1121, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 673, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 697, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/builtins.py", line 1641, in run
    branch_location)
  File "/usr/lib/python2.7/dist-packages/bzrlib/controldir.py", line 780, in open_tree_or_branch
    controldir = klass.open(location)
  File "/usr/lib/python2.7/dist-packages/bzrlib/controldir.py", line 687, in open
    t = _mod_transport.get_transport(base, possible_transports)
  File "/usr/lib/python2.7/dist-packages/bzrlib/transport/__init__.py", line 1680, in get_transport
    return get_transport_from_url(location_to_url(base), possible_transports)
  File "/usr/lib/python2.7/dist-packages/bzrlib/transport/__init__.py", line 1655, in get_transport_from_url
    transport, last_err = _try_transport_factories(url, factory_list)
  File "/usr/lib/python2.7/dist-packages/bzrlib/transport/__init__.py", line 1687, in _try_transport_factories
    return factory.get_obj()(base), None
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/svn/errors.py", line 141, in convert
    return unbound(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/svn/transport.py", line 356, in __init__
    self.connections.add(self.connections.get(self.svn_url))
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/svn/transport.py", line 329, in get
    return self.new(url)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/svn/transport.py", line 297, in new
    return Connection(url, self.auth_baton, readonly=self.readonly)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/svn/transport.py", line 241, in Connection
    config=config)
  File "/usr/lib/python2.7/dist-packages/subvertpy/ra.py", line 47, in RemoteAccess
    return url_handlers[type](url, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/svn/auth.py", line 79, in get_svn_simple
    realm=realm, prompt="%s %s password" % (realm, username))
  File "/usr/lib/python2.7/dist-packages/bzrlib/config.py", line 2007, in get_password
    host=prompt_host, user=user)
  File "/usr/lib/python2.7/dist-packages/bzrlib/ui/text.py", line 256, in get_password
    self.prompt(prompt, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/ui/text.py", line 330, in prompt
    raise ValueError("prompt %r not a unicode string" % prompt)
ValueError: prompt '<svn://tron.homeunix.org:3690> 8aca7d54-2c30-db11-9de9-000461428c89 anon password: ' not a unicode string

bzr 2.6.0dev3 on python 2.7.4 (Linux-3.8.0-26-generic-x86_64-with-
    Ubuntu-13.04-raring)
arguments: ['/usr/bin/bzr', 'checkout',
    'svn://tron.homeunix.org/simutrans/simutrans/']
plugins: bash_completion[2.6.0dev3], builddeb[2.7.0dev], bzrtools[2.5.0],
    changelog_merge[2.6.0dev3], dbus[0.1.0dev], fastimport[0.13.0],
    grep[2.6.0dev3], gtk[0.104.0dev], launchpad[2.6.0dev3],
    netrc_credential_store[2.6.0dev3], news_merge[2.6.0dev3],
    po_merge[2.6.0dev3], svn[1.2.1], weave_fmt[2.6.0dev3]
encoding: 'utf-8', fsenc: 'UTF-8', lang: 'de_DE.UTF-8'

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.

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.