Comment 3 for bug 36004

Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 36004] Handle HTTP redirects sanely

On 22 Mar 2006, Aaron Bentley <email address hidden> wrote:
> Public bug report changed:
> https://launchpad.net/malone/bugs/36004
>
> Comment:
> James Henstridge wrote:
> > If getting http://hostname/location/.bzr results in a redirection to
> > some other URL, it should send further requests to the target URL.

In fact we had a case recently where this would have been good, when we
changed from bazaar-ng.org to bazaar-vcs.org, and at the moment you get
redirects for all the urls.

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

It might be reasonable to add an http redirect for one branch within a
repository. It seems a bit unlikely that within e.g. one store people
will want to redirect individual files, and it may be reasonable to
disallow it.

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

--
Martin