bzr doesn't recognize 404 errors when the server redirects errors to a dedicated page
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
New
|
Undecided
|
Unassigned |
Bug Description
As indicated in bug #129307, branching from some servers that redirect before reporting a 404 error does not work. However, once the initial branching is done (by other means), merging was working with bzr 1.3.1. With bzr 1.4 (or bzr 1.5dev), that fails saying the URL is not a branch.
To reproduce the bug, create a new directory, untar the attached tarball which will create a .bzr/ directory, and do
bzr merge http://
This works as it should with bzr 1.3.1 but with the 1.5dev one gets:
$ bzr merge
Merging from remembered location http://
http://
http://
http://
bzr: ERROR: Not a branch: "http://
Trying to get any non-existing file or to obtain the content of a directory will _redirect_ to a 404 page. This is really annoying as this means collaborating with people using this service provider (which is rather common in Belgium) will be harder that it should.
Presumably following redirections (with a warning on stderr if deemed necessary) and not relying on being able to get the content of directories will fix the problem.
P.S. May be related to #36004
That attachment is a tar.gz file (compressed with gzip, not bzip).