Merge lp:~crosser/duplicity/fix-small-file-upload into lp:~duplicity-team/duplicity/0.8-series

Proposed by Eugene Crosser
Status: Merged
Merged at revision: 1284
Proposed branch: lp:~crosser/duplicity/fix-small-file-upload
Merge into: lp:~duplicity-team/duplicity/0.8-series
Diff against target: 12 lines (+1/-1)
1 file modified
duplicity/backends/dpbxbackend.py (+1/-1)
To merge this branch: bzr merge lp:~crosser/duplicity/fix-small-file-upload
Reviewer Review Type Date Requested Status
duplicity-team Pending
Review via email: mp+334326@code.launchpad.net

Description of the change

I initially guessed that it was a bug in the Dropbox API and opened a ticket
https://github.com/dropbox/dropbox-sdk-python/issues/131
but it turns out that is was a deliberate breakage. Thus, this update is necessary.

After all three fixes, backup to dropbox works for me once again! Yay!

To post a comment you must log in.
1284. By Kenneth Loafman

* Merged in lp:~crosser/duplicity/fix-small-file-upload
  - Fixed small file upload changes made in Dropbox SDK v7.1

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'duplicity/backends/dpbxbackend.py'
2--- duplicity/backends/dpbxbackend.py 2017-11-25 22:12:14 +0000
3+++ duplicity/backends/dpbxbackend.py 2017-11-27 20:12:03 +0000
4@@ -215,7 +215,7 @@
5 try:
6 log.Debug('dpbx,files_upload(%s, [%d bytes])' % (remote_path, file_size))
7
8- res_metadata = self.api_client.files_upload(f, remote_path,
9+ res_metadata = self.api_client.files_upload(f.read(), remote_path,
10 mode=WriteMode.overwrite,
11 autorename=False,
12 client_modified=None,

Subscribers

People subscribed via source and target branches