Unsupported protocol for url

Bug #345605 reported by Roman Erzhukov
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Medium
Unassigned

Bug Description

Trying to do checkout of cyrillic directory:

$ bzr co svn://localhost/repo/директория
bzr: ERROR: Unsupported protocol for url "svn://localhost/repo/директория"

Same bug for "svn+http" protocol, "bzr ls" command.

Tags: url
Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 345605] [NEW] Unsupported protocol for url

But it works if you give it a plain ascii url?
--
Martin <http://launchpad.net/~mbp/>

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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Do you have bzr-svn installed? Does it show up when you run "bzr plugins" ?

  status incomplete
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iJwEAQECAAYFAknC6AkACgkQDLQl4QYPZuX9hQP+J1CgAibZsEawths0caoV7+7i
q0OE1ghlzdz1iGb19nuoINzy6r+id2FmJx8Zj7bfSuJ6DkBGmaxcznFyH0WhIi7E
HwG0p3wv5fFKsS4lMpxYMPgsTqBnmxs45hDp/mgJhWlw1c1T5qhHJDKRFOikFYNu
S6xumi4f1CXK4GOBVNs=
=UW75
-----END PGP SIGNATURE-----

Changed in bzr-svn:
status: New → Incomplete
Revision history for this message
Roman Erzhukov (romaerzhuk) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jelmer Vernooij пишет:
> Do you have bzr-svn installed? Does it show up when you run "bzr
> plugins" ?
>
> status incomplete
$ bzr plugins
bzrtools 1.13
    Various useful commands for working with bzr.

launchpad
    Launchpad.net integration plugin for Bazaar.

netrc_credential_store
    Use ~/.netrc as a credential store for authentication.conf.

rebase 0.4.4
    Rebase support.

svn 0.5.3
    Support for Subversion branches

** Changed in: bzr-svn
       Status: New => Incomplete

- --
С уважением,
    Роман Ержуков
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknDJs4ACgkQ9HdI/9tw6yYMgwCdGOS9MZkVFKmf7zt7EtjrXIQT
q7IAn06tPiACyFr9C/7OCdZ3ecNqxY3E
=cnAf
-----END PGP SIGNATURE-----

Revision history for this message
Roman Erzhukov (romaerzhuk) wrote :

Martin Pool пишет:
> But it works if you give it a plain ascii url?
>
Yes, it works.

It works too:

$ bzr co svn://localhost/repo/asciidir

$ ls -l asciidir/
drwxr-xr-x 2 roman roman 4096 Mar 20 08:21 директория

--
    Roman Erzhukov

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

Please paste the traceback in ~/.bzr.log.

Revision history for this message
Roman Erzhukov (romaerzhuk) wrote : Re: [Bug 345605] Re: Unsupported protocol for url

Jelmer Vernooij пишет:
> Please paste the traceback in ~/.bzr.log.
>
>
--
    Roman Erzhukov

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

this error occurs before bzr-svn comes into play, so reassigning to bzr itself

Changed in bzr-svn:
status: Incomplete → Confirmed
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

convert_path_to_url() should raise a clearer error here.

Changed in bzr:
importance: Undecided → Medium
status: Confirmed → Triaged
Martin Pool (mbp)
Changed in bzr:
status: Triaged → Confirmed
Jelmer Vernooij (jelmer)
tags: added: url
Revision history for this message
eloj (srm-dfr) wrote :

Related(?) regression from 2.1.0 to 2.2.1

$ echo monkey > test:dummy.txt
$ cat test\:dummy.txt
monkey
$ bzr add test\:dummy.txt
bzr: ERROR: Unsupported protocol for url "test:dummy.txt"

Mon 2011-03-07 13:40:48 +0100
0.038 bazaar version: 2.2.1
0.038 bzr arguments: [u'add', u'test:dummy.txt']
0.049 looking for plugins in /home/x/.bazaar/plugins
0.049 looking for plugins in /usr/lib64/python2.4/site-packages/bzrlib/plugins
0.062 looking for plugins in /usr/lib/python2.4/site-packages/bzrlib/plugins
0.092 encoding stdout as sys.stdout encoding 'ISO-8859-1'
0.115 Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/bzrlib/commands.py", line 912, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib64/python2.4/site-packages/bzrlib/commands.py", line 1112, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib64/python2.4/site-packages/bzrlib/commands.py", line 690, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib64/python2.4/site-packages/bzrlib/commands.py", line 705, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib64/python2.4/site-packages/bzrlib/cleanup.py", line 134, in run_simple
    return _do_with_cleanups(
  File "/usr/lib64/python2.4/site-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib64/python2.4/site-packages/bzrlib/builtins.py", line 688, in run
    tree, file_list = tree_files_for_add(file_list)
  File "/usr/lib64/python2.4/site-packages/bzrlib/builtins.py", line 100, in tree_files_for_add
    tree, relpath = WorkingTree.open_containing(file_list[0])
  File "/usr/lib64/python2.4/site-packages/bzrlib/workingtree.py", line 351, in open_containing
    control, relpath = bzrdir.BzrDir.open_containing(path)
  File "/usr/lib64/python2.4/site-packages/bzrlib/bzrdir.py", line 966, in open_containing
    transport = get_transport(url, possible_transports)
  File "/usr/lib64/python2.4/site-packages/bzrlib/lazy_import.py", line 125, in __call__
    return obj(*args, **kwargs)
  File "/usr/lib64/python2.4/site-packages/bzrlib/transport/__init__.py", line 1612, in get_transport
    base = convert_path_to_url(base, 'Unsupported protocol: %s')
  File "/usr/lib64/python2.4/site-packages/bzrlib/transport/__init__.py", line 1576, in convert_path_to_url
    raise errors.UnsupportedProtocol(base, last_err)
UnsupportedProtocol: Unsupported protocol for url "test:dummy.txt"

0.115 Transferred: 0kB (0.0kB/s r:0kB w:0kB)
0.115 return code 3

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

This now shows a correct error:

bzr: ERROR: Invalid url supplied to transport: "svn://localhost/repo/директория": URLs must be properly escaped

Changed in bzr:
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

Bug attachments

Remote bug watches

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