Error with svn get to https repository

Bug #80553 reported by Scott Henson
6
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Fix Released
High
Jelmer Vernooij

Bug Description

I was trying to branch an svn repository and I got the following dump. bzr 0.14rc1 and bzr-svn 0.3.

sjh@wildfire:/tmp/tmp.qJqRd18485$ bzr branch svn+https://svn.lcsee.wvu.edu/users/scotth
bzr: ERROR: libsvn._core.SubversionException: ("PROPFIND request failed on '/users/scotth'", 170001)

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 650, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 612, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 304, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 712, in run
    br_from = Branch.open(from_location)
  File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 119, in open
    control = bzrdir.BzrDir.open(base, _unsupported)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 500, in open
    return BzrDir.open_from_transport(t, _unsupported=_unsupported)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 511, in open_from_transport
    return format.open(transport, _found=True)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 1187, in open
    return self._open(transport)
  File "/home/sjh/.bazaar/plugins/bzr-svn/format.py", line 158, in _open
    return SvnRemoteAccess(transport, self)
  File "/home/sjh/.bazaar/plugins/bzr-svn/format.py", line 45, in __init__
    self.svn_root_url = _transport.get_repos_root()
  File "/home/sjh/.bazaar/plugins/bzr-svn/transport.py", line 43, in locked
    return unbound(self, *args, **kwargs)
  File "/home/sjh/.bazaar/plugins/bzr-svn/transport.py", line 152, in get_repos_root
    return svn.ra.get_repos_root(self._ra)
  File "/var/lib/python-support/python2.5/libsvn/ra.py", line 496, in svn_ra_get_repos_root
    return apply(_ra.svn_ra_get_repos_root, args)
SubversionException: ("PROPFIND request failed on '/users/scotth'", 170001)

bzr 0.14.0candidate1 on python 2.5.0.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'branch', 'svn+https://svn.lcsee.wvu.edu/users/scotth']

** please send this report to <email address hidden>

Tags: http
Jelmer Vernooij (jelmer)
Changed in bzr-svn:
assignee: nobody → jelmer
status: Unconfirmed → Confirmed
Jelmer Vernooij (jelmer)
Changed in bzr-svn:
importance: Undecided → High
Revision history for this message
Mark Lee (malept) wrote :

I can duplicate this using bzr-svn-0.3.2, patched svn-1.3.2 python bindings and bzr 0.15.0 on Gentoo Linux: (from .bzr.log and output)

bzr 0.15.0 on python 2.4.3.final.0 (linux2)

bzr arguments: [u'branch', u'svn+https://[user]:[password]@[project].googlecode.com/svn']
looking for plugins in /home/[user]/.bazaar/plugins
looking for plugins in /usr/lib/python2.4/site-packages/bzrlib/plugins
Plugin name __init__ already loaded
Plugin name __init__ already loaded
[21537] Tue 13:18:31.411 WARNING: Subversion version too old for working tree support.
encoding stdout as sys.stdout encoding 'UTF-8'
opening SVN RA connection to 'https://[user]:[password]@[project].googlecode.com/svn'
opening SVN RA connection to 'https://[user]:[password]@[project].googlecode.com/svn/.bzr'
svn get-repos-root
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 650, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 612, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 304, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 854, in run
    br_from = Branch.open(from_location)
  File "/usr/lib/python2.4/site-packages/bzrlib/branch.py", line 129, in open
    control = bzrdir.BzrDir.open(base, _unsupported)
  File "/usr/lib/python2.4/site-packages/bzrlib/bzrdir.py", line 545, in open
    return BzrDir.open_from_transport(t, _unsupported=_unsupported)
  File "/usr/lib/python2.4/site-packages/bzrlib/bzrdir.py", line 585, in open_from_transport
    return format.open(transport, _found=True)
  File "/usr/lib/python2.4/site-packages/bzrlib/bzrdir.py", line 1363, in open
    return self._open(transport)
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/format.py", line 158, in _open
    return SvnRemoteAccess(transport, self)
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/format.py", line 45, in __init__
    self.svn_root_url = _transport.get_repos_root()
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/transport.py", line 43, in locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/transport.py", line 152, in get_repos_root
    return svn.ra.get_repos_root(self._ra)
  File "//usr/lib/python2.4/site-packages/libsvn/ra.py", line 462, in svn_ra_get_repos_root
    return apply(_ra.svn_ra_get_repos_root, args)
SubversionException: ("PROPFIND request failed on '/svn'", 170001)

return code 3

Revision history for this message
Mark Lee (malept) wrote :

Here's the same error on Debian Etch, bzr-0.15rc2, bzr-svn 0.3.2, python-subversion 1.4.2dfsg1-2 (from .bzr.log and output):

bzr 0.15.0candidate2 on python 2.4.4.final.0 (linux2)

bzr arguments: [u'branch', u'svn+https://[user]:[password]@[project].googlecode.com/svn']
looking for plugins in /home/[user]/.bazaar/plugins
looking for plugins in /usr/lib/python2.4/site-packages/bzrlib/plugins
Plugin name __init__ already loaded
Plugin name __init__ already loaded
encoding stdout as sys.stdout encoding 'UTF-8'
using pycurl libcurl/7.15.5 GnuTLS/1.4.4 zlib/1.2.3 libidn/0.6.5
opening SVN RA connection to 'svn+https://[user]:[password]@[project].googlecode.com/svn'
opening SVN RA connection to 'svn+https://[user]:[password]@[project].googlecode.com/svn'
opening SVN RA connection to 'svn+https://[user]:[password]@[project].googlecode.com/svn/.bzr'
svn get-repos-root
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 650, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 612, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 304, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 854, in run
    br_from = Branch.open(from_location)
  File "/usr/lib/python2.4/site-packages/bzrlib/branch.py", line 129, in open
    control = bzrdir.BzrDir.open(base, _unsupported)
  File "/usr/lib/python2.4/site-packages/bzrlib/bzrdir.py", line 520, in open
    return BzrDir.open_from_transport(t, _unsupported=_unsupported)
  File "/usr/lib/python2.4/site-packages/bzrlib/bzrdir.py", line 531, in open_from_transport
    return format.open(transport, _found=True)
  File "/usr/lib/python2.4/site-packages/bzrlib/bzrdir.py", line 1293, in open
    return self._open(transport)
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/format.py", line 158, in _open
    return SvnRemoteAccess(transport, self)
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/format.py", line 45, in __init__
    self.svn_root_url = _transport.get_repos_root()
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/transport.py", line 43, in locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/transport.py", line 152, in get_repos_root
    return svn.ra.get_repos_root(self._ra)
  File "/var/lib/python-support/python2.4/libsvn/ra.py", line 493, in svn_ra_get_repos_root
    return apply(_ra.svn_ra_get_repos_root, args)
SubversionException: ("PROPFIND request failed on '/svn/trunk'", 170001)

return code 3

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

Please provide a publicly accessible branch that demonstrates this bug so I can reproduce it.

Changed in bzr-svn:
importance: High → Low
status: Confirmed → Needs Info
Revision history for this message
John Whitley (whitley) wrote :

Using bzr.dev (pre-0.19, revno 2671) and bzr-svn 0.4.0, I'm seeing this error with these commands on the public repository for the Typo blogging software (http://www.typosphere.org/):

bzr svn-import http://svn.typosphere.org/typo

bzr branch http://svn.typosphere.org/typo/branches/branch_4_1

It's probably worth contacting the Typo developers to see if you can get details of their SVN HTTP setup.

----- Other platform notes
subversion and svn python bindings from svn 1.5.0 revno 25951
OS X 10.4.10, Intel
Python 2.5.1 from MacPorts

----- Exception traceback
>> bzr svn-import http://svn.typosphere.org/typo
bzr: ERROR: libsvn._core.SubversionException: ("PROPFIND request failed on '/typo'", 175011)

Traceback (most recent call last):
  File "/Users/whitley/src/bzr/dev/bzrlib/commands.py", line 729, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/Users/whitley/src/bzr/dev/bzrlib/commands.py", line 691, in run_bzr
    ret = run(*run_argv)
  File "/Users/whitley/src/bzr/dev/bzrlib/commands.py", line 389, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Users/whitley/src/bzr/dev/bzrlib/commands.py", line 701, in ignore_pipe
    result = func(*args, **kwargs)
  File "/Users/whitley/.bazaar/plugins/bzrsvn/__init__.py", line 188, in run
    from_dir = BzrDir.open(from_location)
  File "/Users/whitley/src/bzr/dev/bzrlib/bzrdir.py", line 531, in open
    return BzrDir.open_from_transport(t, _unsupported=_unsupported)
  File "/Users/whitley/src/bzr/dev/bzrlib/bzrdir.py", line 573, in open_from_transport
    return format.open(transport, _found=True)
  File "/Users/whitley/src/bzr/dev/bzrlib/bzrdir.py", line 1378, in open
    return self._open(transport)
  File "/Users/whitley/.bazaar/plugins/bzrsvn/format.py", line 202, in _open
    return SvnRemoteAccess(transport, self)
  File "/Users/whitley/.bazaar/plugins/bzrsvn/format.py", line 55, in __init__
    self.svn_root_url = _transport.get_repos_root()
  File "/Users/whitley/.bazaar/plugins/bzrsvn/errors.py", line 54, in convert
    raise convert_error(e)
SubversionException: ("PROPFIND request failed on '/typo'", 175011)

bzr 0.19.0dev0 on python 2.5.1.final.0 (darwin)
arguments: ['/Users/whitley/local/bin/bzr', 'svn-import', 'http://svn.typosphere.org/typo']

** please send this report to <email address hidden>

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 80553] Re: Error with svn get to https repository

Thanks for the comments.

This bug seems to be quite common for people using http://, so upgrading
the importance.

  importance high

Jelmer Vernooij (jelmer)
Changed in bzr-svn:
importance: Low → High
Revision history for this message
John Whitley (whitley) wrote :

Minor fix to my prior comment, the example branch name I grabbed was incorrect due to an error on Typo's wiki. The correct branch command is:

bzr branch http://svn.typosphere.org/typo/branches/release_4_1_x typo-4.1

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

  status triaged

Changed in bzr-svn:
status: Incomplete → Triaged
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Ah, found it! These repositories can't be accessed at the root:

ganieda:~% svn info
http://svn.typosphere.org/typo/branches/release_4_1_x
...
Repository Root: http://svn.typosphere.org/typo
...

ganieda:~% svn info http://svn.typosphere.org/typo/
subversion/libsvn_ra_neon/util.c:1210: (apr_err=175011)
svn: PROPFIND request failed on '/typo'
subversion/libsvn_ra_neon/util.c:480: (apr_err=175011)
svn: Repository moved permanently to 'http://svn.typosphere.org/typo/';
please relocate

Not really sure what to do about that - I guess some evil http-specific
may work around it.

--
Jelmer Vernooij <email address hidden> - http://samba.org/~jelmer/
Jabber: <email address hidden>

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

  status fixcommitted

This is now fixed in the 0.4 branch. It is now possible to check out
http://svn.typosphere.org/typo/branches/release_4_1_x without problems.

'bzr svn-import' still doesn't work on that repository, but there is no
way to make it work properly since 'svn ls
http://svn.typosphere.org/typo/' also doesn't work.
--
Jelmer Vernooij <email address hidden> - http://samba.org/~jelmer/
Jabber: <email address hidden>

Changed in bzr-svn:
status: Triaged → Fix Committed
Jelmer Vernooij (jelmer)
Changed in bzr-svn:
status: Fix Committed → Fix Released
Revision history for this message
Brian de Alwis (slyguy) wrote : Possible regression in 80553 with bzr-svn 0.4.5 and bzr 1.0
Download full text (7.3 KiB)

I'm seeing a recurrence of the problem described in bug 80553 with bzr-svn 0.4.5 and bzr 1.0 on MacOS X 10.5.1. The root repository where I'm experiencing this hosts a number of projects, some of which are not public is currently private but the 'gt' portion should hopefully be publically available in the next couple of days. bzr-svn is otherwise working fine and I am able to successfully pull projects from other subversion repositories however (e.g., from googlecode.com, etc.).

Or is it that the root should be https://papyrus.usask.ca/svn/dept/*gt* ? ('*' used to indicate additional component)

------------------------------
$ svn info https://papyrus.usask.ca/svn/dept/gt/trunk/
Path: trunk
URL: https://papyrus.usask.ca/svn/dept/gt/trunk
Repository Root: https://papyrus.usask.ca/svn/dept
Repository UUID: 2d47b262-a5da-0310-af36-9ee85df9eb2a
Revision: 4883
Node Kind: directory
Last Changed Author: bsd178
Last Changed Rev: 4881
Last Changed Date: 2008-01-04 14:29:13 -0600 (Fri, 04 Jan 2008)

$ svn info https://papyrus.usask.ca/svn/dept
svn: PROPFIND request failed on '/svn/dept'
svn: PROPFIND of '/svn/dept': 403 Forbidden (https://papyrus.usask.ca)

$ bzr info svn+https://papyrus.usask.ca/svn/dept/gt/trunk/
bzr: ERROR: Permission denied: ".": PROPFIND request failed on '/svn/dept/gt/trunk'

$ cat ~/.bzr.log

this is a debug log for diagnosing/reporting problems in bzr
you can delete or truncate this file, or include sections in
bug reports to https://bugs.launchpad.net/bzr/+filebug

bzr arguments: [u'info', u'svn+https://papyrus.usask.ca/svn/dept/gt/trunk/']
looking for plugins in /Users/bsd/.bazaar/plugins
looking for plugins in /usr/pkg/lib/python2.4/site-packages/bzrlib/plugins
Plugin name __init__ already loaded
Plugin name __init__ already loaded
encoding stdout as sys.stdin encoding 'UTF-8'
Traceback (most recent call last):
  File "/usr/pkg/lib/python2.4/site-packages/bzrlib/commands.py", line 802, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/pkg/lib/python2.4/site-packages/bzrlib/commands.py", line 758, in run_bzr
    ret = run(*run_argv)
  File "/usr/pkg/lib/python2.4/site-packages/bzrlib/commands.py", line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/pkg/lib/python2.4/site-packages/bzrlib/commands.py", line 768, in ignore_pipe
    result = func(*args, **kwargs)
  File "/usr/pkg/lib/python2.4/site-packages/bzrlib/builtins.py", line 1086, in run
    show_bzrdir_info(bzrdir.BzrDir.open_containing(location)[0],
  File "/usr/pkg/lib/python2.4/site-packages/bzrlib/bzrdir.py", line 634, in open_containing
    return BzrDir.open_containing_from_transport(transport)
  File "/usr/pkg/lib/python2.4/site-packages/bzrlib/bzrdir.py", line 655, in open_containing_from_transport
    result = BzrDir.open_from_transport(a_transport)
  File "/usr/pkg/lib/python2.4/site-packages/bzrlib/bzrdir.py", line 614, in open_from_transport
    return format.open(transport, _found=True)
  File "/usr/pkg/lib/python2.4/site-packages/bzrlib/bzrdir.py", line 1438, in open
    return self._open(transport)
  File "/usr/pkg/lib/python2.4/site-packages/bzrlib/plugins/svn/format.py", line 71, in _open
    return remote.SvnR...

Read more...

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.