redirect from branch/.bzr
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Medium
|
James Henstridge |
Bug Description
Some people try checking bzr branches from the branch page on launchpad.net. We should provide an appropriate redirection.
If $URL is the canonical URL of a Branch in Launchpad (e.g. https:/
$TARGET would be BranchView.url (the Branch.url if it is set, fallback to the supermirror URL).
It's unclear what should be the correct redirection code. 303 was suggested at first, but I think 302 would be more appropriate. See http://
Two pagetests would be needed: one for redirection from $URL/.bzr where Branch.url is set. One for redirection of $URL/.bzr where Branch.url is NULL.
It would be nice to also implement an end-to-end test to check that bzr correctly handles the redirection, but that would be much more complicated.
Changed in launchpad: | |
assignee: | nobody → kiko |
status: | Unconfirmed → Confirmed |
Changed in launchpad-bazaar: | |
importance: | Medium → Wishlist |
Changed in launchpad-bazaar: | |
assignee: | kiko → jamesh |
Before implementing this, bzr would need to handle redirects correctly as described in bug 36004.
If $LPBRANCHURL/.bzr redirects to $TARGET/.bzr and that branch is inside a repository, bzr needs to look for the repository relative to $TARGET rather than $LPBRANCHURL or it won't be able to use the branch.