WebDAV backend basic authentication fails with long passwords

Bug #1764432 reported by Röbke Geenen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Duplicity
Fix Released
Medium
Unassigned

Bug Description

when using the WebDAV backend for a provider with a long password, the following error is generated:
Attempt <x> failed. ValueError: Invalid header value 'Basic <base64>'

This problem appears to stem from the fact that the base64 value of the username:password pair contains newlines when the pair is of sufficient length. Please see the attached patch for my proposed solution. I have found this issue and the solution on a CentOS machine with duplicity from EPEL, however based on the source code viewable via launchpad I believe the issue is still present in the latest source, and I believe the patch can also still be applied.

After applying the patch, the WebDAV backend works successfully for my providers (TransIP Stack and pCloud), however that is also the only verification I have performed.

Duplicity version: 0.7.17
Python version: 2.7.5
OS Distro and version: CentOS Linux release 7.4.1708 (Core)
Type of target filesystem: ext4 (local), WebDAV (remote)
Log output from -v9 option: Did not capture this, in case it is necessary, please ask and I will revert the patch to capture it.

Revision history for this message
Röbke Geenen (rgeenen-lp-oops) wrote :
Changed in duplicity:
importance: Undecided → Medium
milestone: none → 0.7.18
status: New → Fix Committed
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.