Restore a file doesn't works if the filename include one ' (apostrophe)

Bug #1622363 reported by Nicola Jelmorini
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
deja-dup (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Trying to restore a specific version of a file, using the context menu (right click) in File/Nautilus, I found out that the window of DéjàDup doesn't shows up. The problem is that this file has an ' (apostrophe) included in his name. Just to try, I have added a second apostrophe to the name, and this time the window of DéjàDup it was open as expected.
I think that there is somewhere a problem of character string, opened and closed when a filename includes an apostrophe, that ends up with an error that prevents to the DéjàDup window to open up correctly.
Of course there is no problem at all, when the file names does not include an apostrophe.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: deja-dup 34.2-0ubuntu1
ProcVersionSignature: Ubuntu 4.4.0-36.55-generic 4.4.16
Uname: Linux 4.4.0-36-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CurrentDesktop: Unity
Date: Sun Sep 11 19:17:55 2016
InstallationDate: Installed on 2014-04-23 (871 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
SourcePackage: deja-dup
UpgradeStatus: Upgraded to xenial on 2016-07-31 (42 days ago)

Revision history for this message
Nicola Jelmorini (jelmorini) wrote :
Revision history for this message
Nicola Jelmorini (jelmorini) wrote :

I can add that this problem happens only with File/Nautilus.
In fact, if I use deja-dup in the terminal, it works correctly.

For example:
deja-dup --restore /home/nicola/Personale/Scritti/That\'s\ my\ file.txt

Revision history for this message
Donald Pedersen (donald187) wrote :

I'm on Ubuntu 16.04. I had previously ripped a bunch of CD's to my computer. When I was uploading them via Deja Dup to Amazon S3 under details some of the apostrophes in the titles were converted to u2019. After the upload was complete if I chose "restore missing files" in an album folder the song titles would appear with u2019 in place of the apostrophes. This didn't happen with every album. If I deleted a particular song with such an apostrophe and tried to restore it it wouldn't work. But I could restore other songs including ones with apostrophes as long as the u2019 didn't show up. I eventually went through each folder, deleted the bad apostrophe's, and replaced them. Now the u2019's don't show up and they restore fine. Also a couple of ellipses were replaced by something like u2029 (I don't remember) and even one dash.

There was also a problem if an album title had an apostrophe in it. In the album folder I couldn't even get a response when choosing "restore missing files". The dialog box wouldn't even pop up. I solved this problem by deleting and not replacing the apostrophe.

I reproduced the problem by ripping a CD with Sound Juicer. My previous albums had been ripped mostly with Foobar2000 on Windows Vista. They're in flac.

I haven't found this problem with documents with an apostrophe in the title.

I tried the command line command in the previous post and still had problems.

Revision history for this message
Michael Terry (mterry) wrote :

Seems fixed in artful.

Changed in deja-dup (Ubuntu):
status: New → 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.