bzr-svn fails to branch

Bug #419114 reported by Morten Siebuhr
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Invalid
Undecided
Unassigned
Bazaar Subversion Plugin
Invalid
Low
Unassigned
subversion
Confirmed
Medium

Bug Description

When trying to branch from an upstream SVN repos (https://svn.mccode.org/svn/McCode/trunk - uses CaCert.org for SSL) into Bazaar, I get the following error:

Source >bzr branch https://svn.mccode.org/svn/McCode/trunk bzr-mccode-trunk

bzr: ERROR: subvertpy.SubversionException: ("REPORT of '/svn/McCode/!svn/bc/2445': 200 OK (https://svn.mccode.org)", 175002)

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 716, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 911, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 547, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 1070, in run
    from_location)
  File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 913, in open_tree_or_branch
    return bzrdir._get_tree_branch()
  File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 898, in _get_tree_branch
    branch = self.open_branch()
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/remote.py", line 187, in open_branch
    branch = SvnBranch(repos, self.branch_path)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/branch.py", line 127, in __init__
    self.layout = self.repository.get_layout()
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/repository.py", line 603, in get_layout
    return self.get_layout_source()[0]
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/repository.py", line 625, in get_layout_source
    self._find_guessed_layout()
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/repository.py", line 643, in _find_guessed_layout
    revnum, self._hinted_branch_path)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/layout/guess.py", line 143, in repository_guess_layout
    repository._log.iter_changes(None, revnum, max(0, revnum-GUESS_SAMPLE_SIZE)), revnum, branch_path)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/logwalker.py", line 246, in iter_changes
    self._fetch_revisions(max(from_revnum, to_revnum), pb=pb)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/logwalker.py", line 328, in _fetch_revisions
    self.actual._transport.get_log(rcvr, [""], self.saved_revnum, to_revnum, 0, True, True, False, todo_revprops)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/transport.py", line 390, in get_log
    revprops)
SubversionException: ("REPORT of '/svn/McCode/!svn/bc/2445': 200 OK (https://svn.mccode.org)", 175002)

bzr 1.13.1 on python 2.6.2 (linux2)
arguments: ['/usr/bin/bzr', 'branch', 'https://svn.mccode.org/svn/McCode/trunk', 'bzr-mccode-trunk']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_DK.UTF-8'
plugins:
  bookmarks /home/msiebuhr/.bazaar/plugins/bookmarks [unknown]
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [1.13]
  cvsps_import /home/msiebuhr/.bazaar/plugins/cvsps_import [unknown]
  etckeeper /usr/lib/python2.6/dist-packages/bzrlib/plugins/etckeeper [unknown]
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [unknown]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [unknown]
  rebase /usr/lib/python2.6/dist-packages/bzrlib/plugins/rebase [0.4.4]
  search /usr/lib/python2.6/dist-packages/bzrlib/plugins/search [1.7dev]
  stats /usr/lib/python2.6/dist-packages/bzrlib/plugins/stats [unknown]
  svn /usr/lib/python2.6/dist-packages/bzrlib/plugins/svn [0.5.3]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.
Source >

Revision history for this message
Andrew Bennetts (spiv) wrote :

Looks like a bzr-svn bug, so closing the bzr part.

Changed in bzr:
status: New → Invalid
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

This is caused by a bug in the Subversion libraries that bzr-svn uses.

e.g. try:

$ svn log -v https://svn.mccode.org/svn/McCode/trunk
...
svn: REPORT of '/svn/McCode/!svn/bc/2470/trunk': 200 OK (https://svn.mccode.org)

Changed in bzr-svn:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Morten Siebuhr (msiebuhr) wrote :

Ideed - but the fact that SVN then fails with the message '200 OK' is a bit confusing to me... And neither 'svn' nor 'svn log' seems to have any debug options, so it is quite difficult to pry out more information about what is wrong.

If it is possible to do so without having to re-compile svn, please let me know, and I will dig into it at some time.

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 419114] Re: bzr-svn fails to branch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Morten Siebuhr wrote:
> Ideed - but the fact that SVN then fails with the message '200 OK' is a
> bit confusing to me... And neither 'svn' nor 'svn log' seems to have any
> debug options, so it is quite difficult to pry out more information
> about what is wrong.
>
> If it is possible to do so without having to re-compile svn, please let
> me know, and I will dig into it at some time.
This is a bug in the Subversion libraries that will require changes to
the Subversion source code to be fixed. You can help to get this bug
fixed by trying to report it upstream in Subversion. If you can
include a network trace that may be helpful to determine what is going
on exactly.

Cheers,

Jelmer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iQIcBAEBCAAGBQJKmoXCAAoJEACAbyvXKaRXB38QAKAmL463/KV5eqIOTIWkr1VY
xvDr84WAnwPlssLfwpBpR/buSmbHyHubRVmhIJ86kgLTvMSf2TomChkE5L/0df5A
vZwMWO8G5rymU8Od9jGGIQ80OVd2VMAEJx5hEix4fHgF20TEwTA/NpHgYKn7LELv
DJsaccftPjP0Q+/qkQS72q7U8xTFRO9gV+I5W/79gzm9St2aTV64dHeU/0xJKNRj
xainEtGnQmnY51xxtMXPQ9XJNxx/ndU64/uN4APcbCNqteC6R/+bm2cxA/53D2Bo
eeg19Ox2i4GcxTE4SZgaB/+PwKvXx+OtwzOl43ge4FqfHVXLAsju+M/rTCuAgDVv
ujfSyYA+WYBTBU0mv6Mq2+OnexhPpshZzjxQOWGWNJdbdNBVhBYuiX1766mltJ8O
I15CSLoMfXH13K5t6a2hSgoeTOVPwI5voOsXDfB9oXxdj1/N0gOVAfV9zbtiHc53
jXGtb4Jaici4mfdmYeWeBRXXH7vVP/vzgrXOhbcagnIWtgncUeLGLXmsi3c8kuh9
jkWxvrhg5FuPH6U+/blQU9jJNe2h+KwWQGz5GHLFiIJyLZLycmRrf47J7aZgbMUm
Mn9FGU941+J3FksDJYN6OrHDYXNPyq3LOgWgIZO2KTt0+vW7hjOf84AHQLbIx06K
UP/bJ6cmWEYO+lKLWkiQ
=MP/o
-----END PGP SIGNATURE-----

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

I've linked the related subversion bug report.

Changed in subversion:
importance: Undecided → Unknown
status: New → Unknown
Changed in bzr-svn:
status: Triaged → Invalid
Changed in subversion:
status: Unknown → Confirmed
Revision history for this message
Morten Siebuhr (msiebuhr) wrote :

I did a dump of the SVN repository and found some invalid UTF-8 in one of the comment to one of the revisions (r1209). Alas, it looks like SVN somehow can't handle incorrect UTF-8.

Revision history for this message
Morten Siebuhr (msiebuhr) wrote :

Oh. BTW, it can be fixed in the repository by following these instructions:

    http://subversion.tigris.org/faq.html#change-log-msg

(Can be done from the client-side by anyone with write-access.)

Changed in subversion:
importance: Unknown → Medium
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.