WebDAV backend creates only tiny or 0 Byte files

Bug #1876446 reported by Sven
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Duplicity
Fix Released
Medium
Unassigned
duplicity (Ubuntu)
Fix Committed
Low
Unassigned

Bug Description

When using the WebDAV backend only tiny or 0-Byte files get created at the WebDAV storage. Duplicity itself doesn't report any error, only the uploaded file size is too small.

Duplicity version: 0.8.12.1596
Python version: 3.6.10
OS Distro and version: gentoo
Type of target filesystem: Linux, Windows, other.: WebDAV

############

I created a 10000000 Byte testfile. The uploaded file sizes are way too small:
...
WebDAV PUT /remote.php/dav/files/myPath/test/duplicity-full.20200502T104649Z.vol1.difftar.gpg ...
WebDAV data length: 78
WebDAV response status 201 with reason 'Created'.
...
WebDAV PUT /remote.php/dav/files/myPath/test/duplicity-full-signatures.20200502T104649Z.sigtar.gpg ...
WebDAV data length: 138
WebDAV response status 201 with reason 'Created'.
...
WebDAV PUT /remote.php/dav/files/myPath/test/duplicity-full.20200502T104649Z.manifest.gpg ...
WebDAV data length: 129
WebDAV response status 201 with reason 'Created'.
...

Verification of this backup fails.

############

I made a small fix in duplicity/backends/webdavbackend.py (see attachment)

############

Now everything works as expected:
...
WebDAV PUT /remote.php/dav/files/myPath/test/duplicity-full.20200502T105219Z.vol1.difftar.gpg ...
WebDAV data length: 28794233
WebDAV response status 201 with reason 'Created'.
...
WebDAV PUT /remote.php/dav/files/myPath/test/duplicity-full-signatures.20200502T105219Z.sigtar.gpg ...
WebDAV data length: 169724
WebDAV response status 201 with reason 'Created'.
...
WebDAV PUT /remote.php/dav/files/myPath/test/duplicity-full.20200502T105219Z.manifest.gpg ...
WebDAV data length: 1332
WebDAV response status 201 with reason 'Created'.
...

Verification of this backup was successful.

############

Tags: patch
Revision history for this message
Sven (zerot) wrote :
Revision history for this message
Sven (zerot) wrote :
Revision history for this message
Sven (zerot) wrote :
Sven (zerot)
description: updated
Changed in duplicity:
assignee: nobody → Kenneth Loafman (kenneth-loafman)
importance: Undecided → Medium
milestone: none → 0.8.13
status: New → In Progress
Changed in duplicity (Ubuntu):
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "patch for duplicity/backends/webdavbackend.py" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Changed in duplicity:
status: In Progress → Fix Committed
assignee: Kenneth Loafman (kenneth-loafman) → nobody
Changed in duplicity:
status: Fix Committed → Fix Released
Changed in duplicity (Ubuntu):
status: Triaged → Fix Committed
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.