--file-changed failed when file contains spaces

Bug #1531154 reported by shaochun on 2016-01-05
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Duplicity
Medium
Unassigned

Bug Description

duplicity_0.7.06+bzr1166-0ubuntu0-ubuntu14.04.1
Python 2.7.6
Ubuntu 14.04.3 LTS

The listed (1) command below will fail when spaces exist in UTF8-based filenames:

(1) duplicity collection-status --file-changed "0008 台灣" file://./backup/scene #this will fail
(2) duplicity collection-status --file-changed "1" file://./backup/scene #this is normal

Attached is a quick patch addressing this issue.

shaochun (shaochun) wrote :
shaochun (shaochun) on 2016-01-05
description: updated
shaochun (shaochun) on 2016-01-05
tags: added: collection-status
tags: added: file-changed
shaochun (shaochun) wrote :

This slightly modified patch keeps the Filename in Duplicity's output-summary untouched:

------------------------------------
File: 0008 台灣
Total number of backup: 2
------------------------------------

Changed in duplicity:
assignee: nobody → Kenneth Loafman (kenneth-loafman)
importance: Undecided → Medium
milestone: none → 0.7.07
status: New → In Progress
Changed in duplicity:
assignee: Kenneth Loafman (kenneth-loafman) → nobody
status: In Progress → Fix Committed
Changed in duplicity:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers