bzr register-branch to an lp: url causes crash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Medium
|
Unassigned | ||
Launchpad itself |
Invalid
|
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-
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/
return the_callable(*args, **kwargs)
File "/home/
ret = run(*run_argv)
File "/home/
return self.run(
File "/home/
branch_
File "/home/
self.
File "/home/
result = method(
File "/usr/lib/
return self.__
File "/usr/lib/
verbose=
File "/usr/lib/
return self._parse_
File "/usr/lib/
return u.close()
File "/usr/lib/
raise Fault(*
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-
arguments: ['/home/
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
fastimport /home/phoebus/
launchpad /home/phoebus/
netrc_
svn /home/phoebus/
*** 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:/
including this traceback and a description of the problem.
Related branches
- bzr-core: Pending requested
-
Diff: 641 lines (+33/-431)5 files modifiedbzrlib/plugins/launchpad/__init__.py (+1/-8)
bzrlib/plugins/launchpad/cmds.py (+1/-110)
bzrlib/plugins/launchpad/lp_registration.py (+11/-116)
bzrlib/plugins/launchpad/test_register.py (+11/-197)
doc/en/release-notes/bzr-2.8.txt (+9/-0)
Changed in launchpad-code: | |
status: | New → Invalid |
tags: | added: launchpad |
tags: | added: check-for-breezy |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Andrew Johnson wrote: title=' testing' phoebus/ ANJ/Linux/ lib/python/ bzrlib/ commands. py", line 842, in exception_ to_return_ code phoebus/ ANJ/Linux/ lib/python/ bzrlib/ commands. py", line 1037, in run_bzr phoebus/ ANJ/Linux/ lib/python/ bzrlib/ commands. py", line 654, in run_argv_aliases **all_cmd_ args) phoebus/ ANJ/Linux/ lib/python/ bzrlib/ plugins/ launchpad/ __init_ _.py", line 150, in run service) phoebus/ ANJ/Linux/ lib/python/ bzrlib/ plugins/ launchpad/ lp_registration .py", line 239, in submit ated) phoebus/ ANJ/Linux/ lib/python/ bzrlib/ plugins/ launchpad/ lp_registration .py", line 166, in send_request *method_ params) python2. 5/xmlrpclib. py", line 1150, in __call__ send(self. __name, args) python2. 5/xmlrpclib. py", line 1440, in __request self.__ verbose python2. 5/xmlrpclib. py", line 1204, in request response( h.getfile( ), sock) python2. 5/xmlrpclib. py", line 1343, in _parse_response python2. 5/xmlrpclib. py", line 790, in close *self._ stack[0] ) 2.6.27. 21-170. 2.56.fc10. i686-i686- with-fedora- 10-Cambridge) phoebus/ ANJ/Linux/ bin/bzr' , 'register-branch', '-v', 'lp:~anj/+junk/base-3.14.2', '--branch- title=EPICS Base 3.14 branch snapshot, testing'] ANJ/.bazaar/ plugins/ fastimport [0.9.0dev] ANJ/Linux/ lib/python/ bzrlib/ plugins/ launchpad [2.0.2] l_store /home/phoebus/ ANJ/Linux/ lib/python/ bzrlib/ plugins/ netrc_credentia l_store [2.0.2] ANJ/.bazaar/ plugins/ svn [1.0.1] /bugs.launchpad .net/bzr/ +filebug
> 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-
> 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/
> return the_callable(*args, **kwargs)
> File "/home/
> ret = run(*run_argv)
> File "/home/
> return self.run(
> File "/home/
> branch_object_url = rego.submit(
> File "/home/
> self._authentic
> File "/home/
> result = method(
> File "/usr/lib/
> return self.__
> File "/usr/lib/
> verbose=
> File "/usr/lib/
> return self._parse_
> File "/usr/lib/
> return u.close()
> File "/usr/lib/
> raise Fault(*
> 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-
> arguments: ['/home/
> encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
> plugins:
> fastimport /home/phoebus/
> launchpad /home/phoebus/
> netrc_credentia
> svn /home/phoebus/
>
> *** 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:/
> including this traceback and a description of the problem....