Handling of svn.core.SubversionException 175002 during checkout

Bug #309759 reported by Parth Malwankar
2
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned
Bazaar Subversion Plugin
New
Undecided
Unassigned

Bug Description

Hello,

This issue came up in bzr answers: https://answers.launchpad.net/bzr/+question/54831
I encountered this in bzr 1.5 + bzr-svn 0.4.10 on debian/lenny, installed via aptitude. Not sure if this has been fixed in a later release.

Currently when 'svn.core.SubversionException 175002' is seen, bzr/bzr-svn throws the following error:

    [parth:src]% bzr checkout http://clojure.googlecode.com/svn/trunk/ clojure
    bzr: ERROR: svn.core.SubversionException: ("Server sent unexpected return value (502 Bad Gateway) in response to PROPFIND request for '/svn/!svn/vcc/default'", 175002)

    Traceback (most recent call last):
      File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 846, in run_bzr_catch_errors
        return run_bzr(argv)
      File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 797, in run_bzr
        ret = run(*run_argv)
      File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 499, in run_argv_aliases
        return self.run(**all_cmd_args)
      File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 1024, in run
        accelerator_tree, hardlink)
      File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/branch.py", line 201, in create_checkout
        return self._create_heavyweight_checkout(to_location, revision_id, hardlink=hardlink)
      File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/branch.py", line 153, in _create_heavyweight_checkout
        checkout_branch.pull(self, stop_revision=revision_id)
      File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 165, in write_locked
        return unbound(self, *args, **kwargs)
      File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 1766, in pull
        run_hooks=run_hooks)
      File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 165, in write_locked
        return unbound(self, *args, **kwargs)
      File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 1569, in pull
        self.update_revisions(source, stop_revision, overwrite=overwrite)
      File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 165, in write_locked
        return unbound(self, *args, **kwargs)
      File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 1520, in update_revisions
        self.fetch(other, stop_revision)
      File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 165, in write_locked
        return unbound(self, *args, **kwargs)
      File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 265, in fetch
        pb=nested_pb)
      File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 953, in fetch
        return inter.fetch(revision_id=revision_id, pb=pb, find_ghosts=find_ghosts)
      File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/fetch.py", line 703, in fetch
        self._fetch_switch(conn, needed, pb)
      File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/fetch.py", line 659, in _fetch_switch
        reporter.finish_report(pool)
      File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/errors.py", line 107, in convert
        raise convert_error(e)
    SubversionException: ("Server sent unexpected return value (502 Bad Gateway) in response to PROPFIND request for '/svn/!svn/vcc/default'", 175002)

    bzr 1.5 on python 2.5.2 (linux2)
    arguments: ['/usr/bin/bzr', 'checkout', 'http://clojure.googlecode.com/svn/trunk/', 'clojure']
    encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_IN'
    plugins:
      bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.5.0]
      dbus /usr/lib/python2.5/site-packages/bzrlib/plugins/dbus [unknown]
      diffstat /home/parth/.bazaar/plugins/diffstat [0.2.0]
      gtk /usr/lib/python2.5/site-packages/bzrlib/plugins/gtk [0.94.0]
      launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
      loom /usr/lib/python2.5/site-packages/bzrlib/plugins/loom [1.4.0dev0]
      rebase /usr/lib/python2.5/site-packages/bzrlib/plugins/rebase [0.3.0]
      svn /usr/lib/python2.5/site-packages/bzrlib/plugins/svn [0.4.10]
    *** 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.
    [parth:src]%

The above confuses the user into thinking that a serious bzr internal error has occurred. For the same error, svn shows the following message:

[parth:src]% svn co http://clojure-contrib.googlecode.com/svn/trunk/ clojure-contrib
svn: Server sent unexpected return value (502 Bad Gateway) in response to PROPFIND request for '/svn/!svn/vcc/default'

It might be less intimidating and confusing for the user if bzr shows a simpler/regular error message in this (and possibly other similar cases) case rather than an "internal" error as this confuses the user into thinking that something has gone wrong with bzr.

Parth

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.