Can't link to files with spaces in their filenames

Bug #1329130 reported by Daniel Gnoutcheff
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnote (Ubuntu)
New
Undecided
Unassigned

Bug Description

To reproduce:
1. Identify (or create) a file with a space in its filename, e.g. '/home/gnoutchd/Lots of Junk.txt'
2. Select that file in nautilus and choose 'Copy' from the right-click context menu.
3. Open a note in Gnote and paste.

Expected: Gnote inserts a (working) link the file '/home/gnoutchd/Lots of Junk.txt'.

Actual: Gnote inserts the text '/home/gnoutchd/Lots of Junk.txt', but only the prefix '/home/gnoutchd/Lots' gets highlighted as a link. When that link is clicked, Gnote attempts to open the URL 'file:///home/gnoutchd/Lots', which is not what I wanted to link to. If a file with this truncated name happens to exist, Gnote opens it; otherwise, I get an info dialog with the text:

> Cannot open location
>
> file:///home/gnoutchd/Lots: Error when getting information for file '/home/gnoutchd/Lots': No such file or directory

As a workaround, I can still generate a link to the desired file by typing in a percent-quoted URL, e.g. 'file:///home/gnoutchd/Lots%20of%20Junk.txt'.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: gnote 3.10.3-1
ProcVersionSignature: Ubuntu 3.13.0-29.53-generic 3.13.11.2
Uname: Linux 3.13.0-29-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
CurrentDesktop: GNOME
Date: Wed Jun 11 20:35:58 2014
SourcePackage: gnote
UpgradeStatus: Upgraded to trusty on 2014-04-15 (57 days ago)

Revision history for this message
Daniel Gnoutcheff (gnoutchd) wrote :
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.