Duplicity with OneDrive Backend and double / at the end

Bug #1432999 reported by Antoine Aflalo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Duplicity
Fix Released
Medium
Unassigned

Bug Description

Hello, I sent first this report to Michael Stapelberg who told me to report it here.

I'm using your OneDrive Backend for Duplicity.
I encounter a little bug when the path given to save finish with a / or a double //.
The recursive search is splitting the directory using /. Meaning if you have a directory given as : 'Backup//' it give an array with Backup and an empty string.

I added a failsafe to my local installation of duplicity in the method : resolve_directory line 171:

for component in self.directory.split('/'):
    if not component:
        continue

It's a small fix, but resolve my issue (since I couldn't find exactly where that double / was put in my shell script).

Antoine Aflalo (balor)
tags: added: backends
removed: backend
Changed in duplicity:
importance: Undecided → Medium
milestone: none → 0.7.03
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.