AttributeError: 'NoneType' object has no attribute 'endswith' in http _redirected_to

Bug #730898 reported by Naveen Agarwal
This bug affects 2 people
Affects Status Importance Assigned to Milestone
bzr (Ubuntu)

Bug Description

Binary package hint: bzr

1)Ubuntu release
Description: Ubuntu 10.10
Release: 10.10
2)Package version
  Installed: 2.2.1-0ubuntu1
  Candidate: 2.2.1-0ubuntu1
  Version table:
 *** 2.2.1-0ubuntu1 0
        500 maverick-updates/main i386 Packages
        100 /var/lib/dpkg/status
     2.2.0-1 0
        500 maverick/main i386 Packages

3)While trying to branch the code using the command "bzr branch" got error(attached in the file named as: bzr_bug_report)
4)Expected result:
The branch must have been created

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: bzr 2.2.1-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-27.48-generic
Uname: Linux 2.6.35-27-generic i686
Architecture: i386
Date: Tue Mar 8 02:03:28 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
SourcePackage: bzr

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 912, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 1112, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 690, in run_argv_aliases
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 705, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 1209, in run
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 1032, in open_tree_or_branch
    bzrdir =
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 911, in open
    return BzrDir.open_from_transport(t, _unsupported=_unsupported)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 941, in open_from_transport
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 125, in __call__
    return obj(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/", line 1661, in do_catching_redirections
    transport = redirected(transport, e, redirection_notice)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 931, in redirected
    redirected_transport = transport._redirected_to(e.source,
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/", line 537, in _redirected_to
    if not target.endswith(relpath):
AttributeError: 'NoneType' object has no attribute 'endswith'

Revision history for this message
Naveen Agarwal (nav.coder) wrote :
Revision history for this message
Vincent Ladeuil (vila) wrote :

While bzr shouldn't produce a traceback here (that's a bug), your problem comes from using 'bzr branch'.

There is certainly no bzr branch at '' , try 'lp:randy-qt' instead.

Changed in bzr (Ubuntu):
status: New → Confirmed
Martin Pool (mbp)
description: updated
Martin Pool (mbp)
summary: - bzr: ERROR: exceptions.AttributeError: 'NoneType' object has no
- attribute 'endswith'
+ AttributeError: 'NoneType' object has no attribute 'endswith' in http
+ _redirected_to
Changed in bzr:
status: New → Confirmed
importance: Undecided → Medium
tags: added: error-reporting http launchpad lpurl
tags: added: easy
Jelmer Vernooij (jelmer)
Changed in bzr (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Triaged
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
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.