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

Bug #730898 reported by Naveen Agarwal
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned
bzr (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Binary package hint: bzr

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

3)While trying to branch the code using the command "bzr branch https://www.launchpad.net/randy-qt" 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 2.6.35.11
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)
ProcEnviron:
 LANG=en_IN
 SHELL=/bin/bash
SourcePackage: bzr

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 912, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1112, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 690, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 705, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 1209, in run
    from_location)
  File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 1032, in open_tree_or_branch
    bzrdir = klass.open(location)
  File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 911, in open
    return BzrDir.open_from_transport(t, _unsupported=_unsupported)
  File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 941, in open_from_transport
    redirected)
  File "/usr/lib/python2.6/dist-packages/bzrlib/lazy_import.py", line 125, in __call__
    return obj(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/__init__.py", line 1661, in do_catching_redirections
    transport = redirected(transport, e, redirection_notice)
  File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 931, in redirected
    redirected_transport = transport._redirected_to(e.source, e.target)
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/__init__.py", 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 https://www.launchpad.net/randy-qt'.

There is certainly no bzr branch at 'https://www.launchpad.net/randy-qt' , 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.