Handle HTTP redirects sanely
Bug #36004 reported by
James Henstridge
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Vincent Ladeuil |
Bug Description
It would be nice if bzr handled HTTP redirects sanely.
If getting http://
In the case of a temporary HTTP redirect, it should use the new URL for the duration of the bzr invocation.
In the case of a permanent HTTP redirect, bzr should record the new URL if it would normally have recorded the old URL. For example, "bzr pull" might update .bzr/parent, and "bzr branch http://..." would record the target URL rather than the specified one.
This is a prerequisite for the fix to bug 39015 to perform well.
Related branches
lp:~bzr/bzr/bzr.http.redirection
(Merged)
description: | updated |
Changed in bzr: | |
assignee: | jameinel → v-ladeuil |
Changed in bzr: | |
status: | Confirmed → In Progress |
Changed in bzr: | |
status: | In Progress → Fix Committed |
Changed in bzr: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
James Henstridge wrote: hostname/ location/ .bzr results in a redirection to
> If getting http://
> some other URL, it should send further requests to the target URL.
You know, I was thinking the same thing, but perversely enough, when I
see your email, I come up with a counter-argument.
A single redirect in a tree structure doesn't indicate that all the
children would also redirect. It would be possible to redirect some or
all of my branch files, while still maintaining the branch at a given
location.
On the other hand, bzr has a native form of redirction: Branch
references. They're the kind of branch that a Checkout uses, but any
attempt to open a Branch reference will instead open the referred-to branch.
Aaron enigmail. mozdev. org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://
iD8DBQFEIVs00F+ nu1YWqI0RAhAYAJ 9VggcZ44YR0jYNw NCh/LOnHBl/ FACfR2gW AEhRsM/ s=
KaK35LkNZY4kIjB
=h08R
-----END PGP SIGNATURE-----