bzr+http fails when a redirect occurs

Bug #270863 reported by Jakob
2
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Medium
Vincent Ladeuil

Bug Description

This is yet another bug regarding redirection going wrong; it seems similar to at least #245964 and #265070 and probably to more.
When trying the following command:
  bzr revno bzr+http://www.astro.rug.nl/~jakobb/bzr_repos/repos1
The following error occurs:

  PathNotChild: Path "http://www.astro.rug.nl/%7Ejakobb/bzr_repos/repos1/.bzr/smart" is not a child of path "bzr+http://www.astro.rug.nl/%7Ejakobb/bzr_repos/repos1/": scheme mismatch

The full traceback is here: http://paste.ubuntu.com/47410/
This seems to be precisely the same problem that happens in #265070, where relpath() is not functioning right, except that now the scheme causes the error, instead of the user in the url. If I were to include the user here, you get - as expected:

  bzr: ERROR: bzrlib.errors.PathNotChild: Path "http://www.astro.rug.nl/%7Ejakobb/bzr_repos/repos1/.bzr/smart" is not a child of path "bzr+http://<email address hidden>/%7Ejakobb/bzr_repos/repos1/": scheme mismatch, user name mismatch

Note that this behaviour doesn't depend on the particular command. Any command that tries to access the remote branch will cause this behaviour. This is true for all versions of bzr at least >= 1.5
The significant part from bzr.log is here: http://paste.ubuntu.com/47414/

Tags: http
Revision history for this message
Jakob (jakobsybren) wrote :

Aaah, I forgot to mention. This problem occurs because all .astro.rug.nl-addresses are redirected to .intra.astro.rug.nl on systems inside the institute. Nevertheless, precisely the same problems occur when the http:// is redirected to a https://

Revision history for this message
Jakob (jakobsybren) wrote :

bug 129307 could be related as well?

Revision history for this message
Vincent Ladeuil (vila) wrote :

yes, bug #129307 is related.

Vincent Ladeuil (vila)
Changed in bzr:
importance: Undecided → Medium
status: New → Triaged
Vincent Ladeuil (vila)
Changed in bzr:
assignee: nobody → vila
status: Triaged → In Progress
Vincent Ladeuil (vila)
Changed in bzr:
status: In Progress → Fix Committed
Vincent Ladeuil (vila)
Changed in bzr:
milestone: none → 1.11rc1
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.