[regression] Filenames and paths that contain an apostrophe before a space in the name won't open correctly

Bug #1051447 reported by Doug McMahon
106
This bug affects 21 people
Affects Status Importance Assigned to Milestone
GLib
Unknown
Unknown
glib2.0 (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Test cases:
Find or rename an audio file so there is an apostrophe before a space in name
right click on > open with Movie Player (or any media player
Ex. - I'll be around.flac

Name any text file in similar fashion, r. click > open with Text Editor
Ex. - don't forget to do

In addition to context can be seen from cli with xdg-open, gvfs-open & gtk-launch <app> <url>

This wasn't a problem with glib thru glib2.0 (2.33.8-1), probably became one with glib2.0 (2.33.12-1) or thereabouts
(can be tracked down if need be

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: libglib2.0-0 2.33.12-3
ProcVersionSignature: Ubuntu 3.5.0-14.17-generic 3.5.3
Uname: Linux 3.5.0-14-generic x86_64
ApportVersion: 2.5.1-0ubuntu7
Architecture: amd64
Date: Sat Sep 15 19:35:55 2012
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Alpha amd64 (20120912)
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: glib2.0
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Doug McMahon (mc3man) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in glib2.0 (Ubuntu):
status: New → Confirmed
Revision history for this message
Alvaro Leal (Effenberg0x0) (effenberg0x0) wrote :

It also affects me, I have tested it in two up-to-date Quantal testing machines.

We have tested and discussed this bug originally at http://ubuntuforums.org/showthread.php?t=2058395 . It's easily reproducible, but there are some instructions at http://ubuntuforums.org/showpost.php?p=12240946&postcount=2 if needed.

Revision history for this message
Edward Donovan (edward.donovan) wrote :

I duped a couple bugs that appear to be this problem. This one was assigned to glib, which seemed better. Certainly it's more general than just nautilus or totem. I tried to make the subject line more general, and note that apostrophe-space any where in the whole path can trigger the bug. Thanks.

summary: - Filenames that contain an apostrophe before a space in the name won't
- open from context menus
+ [regression] Filenames and paths that contain an apostrophe before a
+ space in the name won't open correctly
Revision history for this message
Edward Donovan (edward.donovan) wrote :

I also want to note, that clicking on a file with apostrophes and spaces in the name, in nautilus, can open several instances of gedit, passing each a fragment of the name.

Revision history for this message
Doug McMahon (mc3man) wrote :

The only weird thing in general is that any word(s) & spaces before the 1st. apostrophe are treated normally (as one), after the 1st occurrence of an apostrophe then spaces & words are separated.
If there is no space after the first occurrence of an apostrophe then all is normal

Anyway, on a live session with an image that used glib2.0 (2.33.8-1) only updating libglib2.0 & libglib2.0-bin was enough to cause this to start happening.
The update jumped glib up to the current 2.33.12-4, whether it's worth testing the in-betweens don't now, if so ask..

Revision history for this message
Doug McMahon (mc3man) wrote :

I believe it's this bug, fixed upstream
https://bugzilla.gnome.org/show_bug.cgi?id=562907

Tested the diff (12621_12620.diff from /~registry/glib/trunk) & fixes here

Revision history for this message
Edward Donovan (edward.donovan) wrote :

Doug, nice work! I was going to try to track down the version where it breaks, later, so you've spared me that job, and hopefully this will be straightforward to include. Thanks!

Revision history for this message
Doug McMahon (mc3man) wrote : Re: [Bug 1051447] Re: [regression] Filenames and paths that contain an apostrophe before a space in the name won't open correctly

On 09/16/2012 08:56 PM, Edward Donovan wrote:
> hopefully this will be
> straightforward to include.
>
>
>
Just noticed there there is a new glib2.0 build in GNOME Testing PPA
for 12.10 that includes the commit -
glib2.0 (2.33.13+git20120915.ac7dcd81-0ubuntu1~12.10~ricotz0)

Revision history for this message
Edward Donovan (edward.donovan) wrote :

(I tried to run those packages, but ran into too many dependency headaches.)

Revision history for this message
Doug McMahon (mc3man) wrote :

Here is another bug on "nautilus-open-terminal" that I'm very sure if also affected by this bug in glib
Bug 1046791
On a default 12.10 install tested by upgrading glib from the ppa & the ext. works fine
Also tested on the same default install with just the current 12.10 glib patched only for this bug, the ext. works fine

Changed in glib2.0 (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Medium
Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

glib 2.33.14 has been released, and should include this fix.

Revision history for this message
Doug McMahon (mc3man) wrote :

fixed with the glib 2.33.14-1 upgrades now available

Changed in glib2.0 (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Aaron Bentley (abentley) wrote :

The problem is resolved for me.

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.