bzr register-branch to an lp: url causes crash

Bug #483689 reported by Andrew Johnson on 2009-11-16
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Medium
Unassigned
Launchpad itself
Undecided
Unassigned

Bug Description

I realize now that this was a user error, but it probably should result in a more friendly error message explaining that you should just push the branch to lp: without needing to register it first. This was the command and its output:

tux% bzr register-branch -v lp:~anj/+junk/base-3.14.2 --branch-title='testing'
launchpad.net password for <email address hidden>: :
bzr: ERROR: xmlrpclib.Fault: <Fault 120: 'Invalid URL: lp:~anj/+junk/base-3.14.2\nThe URI scheme "lp" is not allowed. Only URIs with the following schemes may be used: bzr+ssh, ftp, http, https, sftp'>

Traceback (most recent call last):
  File "/home/phoebus/ANJ/Linux/lib/python/bzrlib/commands.py", line 842, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/home/phoebus/ANJ/Linux/lib/python/bzrlib/commands.py", line 1037, in run_bzr
    ret = run(*run_argv)
  File "/home/phoebus/ANJ/Linux/lib/python/bzrlib/commands.py", line 654, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/phoebus/ANJ/Linux/lib/python/bzrlib/plugins/launchpad/__init__.py", line 150, in run
    branch_object_url = rego.submit(service)
  File "/home/phoebus/ANJ/Linux/lib/python/bzrlib/plugins/launchpad/lp_registration.py", line 239, in submit
    self._authenticated)
  File "/home/phoebus/ANJ/Linux/lib/python/bzrlib/plugins/launchpad/lp_registration.py", line 166, in send_request
    result = method(*method_params)
  File "/usr/lib/python2.5/xmlrpclib.py", line 1150, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.5/xmlrpclib.py", line 1440, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.5/xmlrpclib.py", line 1204, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib/python2.5/xmlrpclib.py", line 1343, in _parse_response
    return u.close()
  File "/usr/lib/python2.5/xmlrpclib.py", line 790, in close
    raise Fault(**self._stack[0])
Fault: <Fault 120: 'Invalid URL: lp:~anj/+junk/base-3.14.2\nThe URI scheme "lp" is not allowed. Only URIs with the following schemes may be used: bzr+ssh, ftp, http, https, sftp'>

bzr 2.0.2 on python 2.5.2 (Linux-2.6.27.21-170.2.56.fc10.i686-i686-with-fedora-10-Cambridge)
arguments: ['/home/phoebus/ANJ/Linux/bin/bzr', 'register-branch', '-v', 'lp:~anj/+junk/base-3.14.2', '--branch-title=EPICS Base 3.14 branch snapshot, testing']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  fastimport /home/phoebus/ANJ/.bazaar/plugins/fastimport [0.9.0dev]
  launchpad /home/phoebus/ANJ/Linux/lib/python/bzrlib/plugins/launchpad [2.0.2]
  netrc_credential_store /home/phoebus/ANJ/Linux/lib/python/bzrlib/plugins/netrc_credential_store [2.0.2]
  svn /home/phoebus/ANJ/.bazaar/plugins/svn [1.0.1]

*** 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.

Related branches

Download full text (4.0 KiB)

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

Andrew Johnson wrote:
> Public bug reported:
>
> I realize now that this was a user error, but it probably should result
> in a more friendly error message explaining that you should just push
> the branch to lp: without needing to register it first. This was the
> command and its output:
>
> tux% bzr register-branch -v lp:~anj/+junk/base-3.14.2 --branch-title='testing'
> launchpad.net password for <email address hidden>: :
> bzr: ERROR: xmlrpclib.Fault: <Fault 120: 'Invalid URL: lp:~anj/+junk/base-3.14.2\nThe URI scheme "lp" is not allowed. Only URIs with the following schemes may be used: bzr+ssh, ftp, http, https, sftp'>
>
> Traceback (most recent call last):
> File "/home/phoebus/ANJ/Linux/lib/python/bzrlib/commands.py", line 842, in exception_to_return_code
> return the_callable(*args, **kwargs)
> File "/home/phoebus/ANJ/Linux/lib/python/bzrlib/commands.py", line 1037, in run_bzr
> ret = run(*run_argv)
> File "/home/phoebus/ANJ/Linux/lib/python/bzrlib/commands.py", line 654, in run_argv_aliases
> return self.run(**all_cmd_args)
> File "/home/phoebus/ANJ/Linux/lib/python/bzrlib/plugins/launchpad/__init__.py", line 150, in run
> branch_object_url = rego.submit(service)
> File "/home/phoebus/ANJ/Linux/lib/python/bzrlib/plugins/launchpad/lp_registration.py", line 239, in submit
> self._authenticated)
> File "/home/phoebus/ANJ/Linux/lib/python/bzrlib/plugins/launchpad/lp_registration.py", line 166, in send_request
> result = method(*method_params)
> File "/usr/lib/python2.5/xmlrpclib.py", line 1150, in __call__
> return self.__send(self.__name, args)
> File "/usr/lib/python2.5/xmlrpclib.py", line 1440, in __request
> verbose=self.__verbose
> File "/usr/lib/python2.5/xmlrpclib.py", line 1204, in request
> return self._parse_response(h.getfile(), sock)
> File "/usr/lib/python2.5/xmlrpclib.py", line 1343, in _parse_response
> return u.close()
> File "/usr/lib/python2.5/xmlrpclib.py", line 790, in close
> raise Fault(**self._stack[0])
> Fault: <Fault 120: 'Invalid URL: lp:~anj/+junk/base-3.14.2\nThe URI scheme "lp" is not allowed. Only URIs with the following schemes may be used: bzr+ssh, ftp, http, https, sftp'>
>
> bzr 2.0.2 on python 2.5.2 (Linux-2.6.27.21-170.2.56.fc10.i686-i686-with-fedora-10-Cambridge)
> arguments: ['/home/phoebus/ANJ/Linux/bin/bzr', 'register-branch', '-v', 'lp:~anj/+junk/base-3.14.2', '--branch-title=EPICS Base 3.14 branch snapshot, testing']
> encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
> plugins:
> fastimport /home/phoebus/ANJ/.bazaar/plugins/fastimport [0.9.0dev]
> launchpad /home/phoebus/ANJ/Linux/lib/python/bzrlib/plugins/launchpad [2.0.2]
> netrc_credential_store /home/phoebus/ANJ/Linux/lib/python/bzrlib/plugins/netrc_credential_store [2.0.2]
> svn /home/phoebus/ANJ/.bazaar/plugins/svn [1.0.1]
>
> *** 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....

Read more...

Changed in bzr:
importance: Undecided → Medium
status: New → Confirmed
Tim Penhey (thumper) on 2009-11-27
Changed in launchpad-code:
status: New → Invalid
Jonathan Lange (jml) on 2010-03-03
tags: added: launchpad
Jelmer Vernooij (jelmer) on 2017-11-09
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers