bzr does not indicate that it's following redirects
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Medium
|
Unassigned | ||
Launchpad itself |
Invalid
|
Medium
|
Unassigned |
Bug Description
I tried the following:
bzr branch http://
Which returns:
bzr: ERROR: Not a branch: "https:/
The error does seem bogus. The full log:
0.062 encoding stdout as sys.stdout encoding 'UTF-8'
0.063 bzr arguments: [u'branch', u'http://
0.063 looking for plugins in /home/cournapea
0.066 looking for plugins in /export/
0.067 Plugin name __init__ already loaded
0.067 Plugin name __init__ already loaded
0.141 looking for plugins in /usr/lib/
0.152 encoding stdout as sys.stdout encoding 'UTF-8'
0.182 failed to import pycurl: No module named pycurl
0.182 failed to instantiate transport <bzrlib.
0.763 Traceback (most recent call last):
File "/home/
return run_bzr(argv)
File "/home/
ret = run(*run_argv)
File "/home/
return self.run(
File "/home/
accelerator
File "/home/
bzrdir = klass.open(
File "/home/
return BzrDir.
File "/home/
redirected)
File "/home/
return obj(*args, **kwargs)
File "/home/
transport = redirected(
File "/home/
raise errors.
NotBranchError: Not a branch: "https:/
0.763 return code 3
This may be a launchpad problem, though:
bzr branch http://
Gives me an error which is now understandable (the trunk branch does not exist):
bzr: ERROR: Not a branch: "https:/
description: | updated |
description: | updated |
Changed in bzr: | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in bzr: | |
status: | Triaged → Confirmed |
tags: | added: check-for-breezy |
The issue here is that http:// bazaar. launchpad. net/~david- ar/vbem/ trunk/. bzr redirects you to https:/ /code.launchpad .net/, so bzr follows the redirect, then finds that the new URL is not a branch.
It's pretty weird that http:// bazaar. launchpad. net/~david- ar/vbem/ trunk/ is a 404, while http:// bazaar. launchpad. net/~david- ar/vbem/ trunk/. bzr is a redirect. I think the bazaar. launchpad. net webserver should probably not redirect in the latter case. A link to https:/ /code.launchpad .net/ on the 404 page probably satisfies whatever need the redirect serves.
Also, bzr should be clearer about what's going on. It should tell the user that it's following a redirect, and then the error message will make sense.