GNOME Bugzilla – Bug 333998
more fun with ampersands: file monitoring
Last modified: 2008-07-15 21:42:24 UTC
Files that we first become aware of through file monitoring events get added twice. I haven't looked very closely, but I suspect the file URI that gnome-vfs gives us (probably) has & encoded as %26. Some sequence of badness follows, wherein the entry with %26 is added, a stat is queued, it gets translated to &, and another entry is added. Probably.
Created attachment 61356 [details] [review] annoying patch Our problems with & (and =) arise from the fact that gnome_vfs_escape_path_string doesn't encode them, but gnome_vfs_uri_new does (in a block of code marked as a 'quick hack' that has been there since 2.12 ..). This patch makes rb_canonicalise_uri specifically encode these characters, and bumps the rhythmdb file version to 1.2, causing entries from 1.1 to be canonicalised again. This makes it possible for us to use URIs returned by gnome-vfs.
Looks good to me.
committed.
*** Bug 335598 has been marked as a duplicate of this bug. ***
*** Bug 337047 has been marked as a duplicate of this bug. ***
*** Bug 349378 has been marked as a duplicate of this bug. ***
*** Bug 362149 has been marked as a duplicate of this bug. ***
*** Bug 543117 has been marked as a duplicate of this bug. ***