This bug seems to persist in versions 1.1.0 and 1.1.1

% bzr branch https://people.samba.org/bzr/jelmer/dulwich/trunk/ dulwich2
bzr: ERROR: Connection closed: Unexpected end of message. Please check 
connectivity and permissions, and report a bug if problems persist. 

% bzr branch https://www.webprojekty.cz/ccx/bzr/zmuch zmuch
bzr: ERROR: Invalid http response for 
https://www.webprojekty.cz/ccx/bzr/zmuch/.bzr/branch-format: Unable to handle 
http code 405: expected 200 or 404 for full response.: 

both sites respond with proper 404 on file not found. Here is snippet
from webserver logs:

213.29.225.26 - - [26/Oct/2011:12:57:05 +0200] "OPTIONS /ccx/bzr/zmuch/ 
HTTP/1.1" 405 354 "-" "bzr/2.4.1 (pycurl: libcurl/7.22.0 GnuTLS/2.10.5 
zlib/1.2.5.1)" "-"
213.29.225.26 - - [26/Oct/2011:12:57:05 +0200] "OPTIONS 
/ccx/bzr/zmuch/.bzr/smart HTTP/1.1" 405 354 "-" "bzr/2.4.1 (pycurl: 
libcurl/7.22.0 GnuTLS/2.10.5 zlib/1.2.5.1)" "-"
213.29.225.26 - - [26/Oct/2011:12:57:06 +0200] "OPTIONS 
/ccx/bzr/zmuch/.bzr/branch-format HTTP/1.1" 405 354 "-" "bzr/2.4.1 (pycurl: 
libcurl/7.22.0 GnuTLS/2.10.5 zlib/1.2.5.1)" "-"

405 Method Not Allowed seems like an appropriate response to OPTIONS
request to me.

Moreover when you have bzr-svn-1.1.0 and bzr-git it triggers this quite
misleading traceback:

bzr: ERROR: exceptions.AttributeError: 'NoneType' object has no
attribute '_transport'

Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/bzrlib/commands.py", line 946, in 
exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/bzrlib/commands.py", line 1150, in 
run_bzr
    ret = run(*run_argv)
  File "/usr/lib64/python2.7/site-packages/bzrlib/commands.py", line 699, in 
run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib64/python2.7/site-packages/bzrlib/commands.py", line 721, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/bzrlib/cleanup.py", line 135, in 
run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/bzrlib/cleanup.py", line 165, in 
_do_with_cleanups
    result = func(*args, **kwargs)
  File "/home/ccx/.bazaar/plugins/externals/commands.py", line 218, in run
    super(cmd_branch, self).run(**kwargs)
  File "/usr/lib64/python2.7/site-packages/bzrlib/builtins.py", line 1263, in 
run
    from_location)
  File "/usr/lib64/python2.7/site-packages/bzrlib/bzrdir.py", line 919, in 
open_tree_or_branch
    return bzrdir._get_tree_branch()
  File "/usr/lib64/python2.7/site-packages/bzrlib/controldir.py", line 410, in 
_get_tree_branch
    branch = self.open_branch(name=name)
  File "/home/ccx/.bazaar/plugins/git/dir.py", line 368, in open_branch
    repo = self.open_repository()
  File "/home/ccx/.bazaar/plugins/git/dir.py", line 407, in open_repository
    return self._gitrepository_class(self)
  File "/home/ccx/.bazaar/plugins/git/repository.py", line 238, in __init__
    GitRepository.__init__(self, gitdir)
  File "/home/ccx/.bazaar/plugins/git/repository.py", line 118, in __init__
    gitdir, None)
  File "/usr/lib64/python2.7/site-packages/bzrlib/repository.py", line 375, in 
__init__
    self._transport = control_files._transport
AttributeError: 'NoneType' object has no attribute '_transport'

bzr 2.4.1 on python 2.7.2 (Linux-3.0.4-gentoo-x86_64-AMD_Athlon-tm-
    _Dual_Core_Processor_5050e-with-gentoo-2.1)
arguments: ['/usr/bin/bzr', 'branch',
    'https://people.samba.org/bzr/jelmer/dulwich/trunk/', 'dulwich2']
plugins: automirror[0.1.0], bash_completion[2.4.1], bookmarks[unknown],
    bzr_buildbot[unknown], bzrtools[2.4.1], changelog_merge[2.4.1],
    explorer[1.2.1], externals[1.3.2], extmerge[unknown], git[0.6.3dev],
    gtk[0.100.0], hgrep[unknown], launchpad[2.4.1], loom[2.2.1dev],
    netrc_credential_store[2.4.1], news_merge[2.4.1],
    push_and_update[0.2.0dev], qbzr[0.21.1], rewrite[0.6.2], svn[1.1.0],
    text_checker[0.3.0dev1], updatetree[unknown], weave_fmt[2.4.1]
encoding: 'UTF-8', fsenc: 'UTF-8', lang: None

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/774571

Title:
  bzr-svn: svn plugin seems to mess with read-only basic https
  connection

To manage notifications about this bug go to:
https://bugs.launchpad.net/bzr-svn/+bug/774571/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to