[PATCH] WebDAV backend doesn't work

Bug #467391 reported by Andreas Müller
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Duplicity
Fix Released
Medium
Unassigned

Bug Description

I'm using duplicity 0.6.05 on Fedora 11 (Python 2.6) and wanted to try out WebDAV with humyo.com. However, I get the following traceback when I try to make a backup (or any other operation on the webdav space):

Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1241, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1234, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1135, in main
    sync_archive()
  File "/usr/bin/duplicity", line 914, in sync_archive
    remlist = globals.backend.list()
  File "/usr/lib64/python2.6/site-packages/duplicity/backends/webdavbackend.py", line 165, in list
    response = self.request("PROPFIND", self.directory, self.listbody)
  File "/usr/lib64/python2.6/site-packages/duplicity/backends/webdavbackend.py", line 112, in request
    response = self.conn.getresponse()
  File "/usr/lib64/python2.6/httplib.py", line 940, in getresponse
    raise ResponseNotReady()
ResponseNotReady

I don't know whether this problem is caused by humyo.com (I didn't test with any other webdav service), but I get the same traceback under CentOS 5.3, which uses python 2.4.3.

The attached patch fixes the problem for me.

Revision history for this message
Andreas Müller (mail-andreas-mueller) wrote :
Revision history for this message
Tokuko (launchpad-net-tokuko) wrote :

I'm facing the same issue with Humyo.de. What I saw with tcpdump is that the response is HTTP/1.0, not 1.1. Not sure if that matters, though.
If you intend to apply the patch by hand, ensure that you use spaces not tabs to indent the line, especially watch out what the editor automatically inserts. That's what caused some headache for me.
The patch is working fine for me.

Changed in duplicity:
status: New → Fix Committed
milestone: none → 0.6.07
Changed in duplicity:
importance: Undecided → Medium
Changed in duplicity:
status: Fix Committed → Fix Released
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.