GNOME Bugzilla – Bug 611996
Files with % and # in the file name can't be imported by drag and drop
Last modified: 2010-03-09 14:40:18 UTC
Take any file that can be imported into pitivi and rename it so that it contains % or # and you will get an error when trying to import it. The user gets the error: The following file can not be used with PiTiVi. URI:test #.flv Problem:Pipeline didn't want to go to PAUSED. The first debug warning for a file name containing %: 0:00:30.069072984 18862 0x97f2f70 WARN filesrc gstfilesrc.c:1154:gst_file_src_uri_set_uri:<src-file:///home/volker/Desktop/%.flv> Invalid URI 'file:///home/volker/Desktop/%.flv' for filesrc: The URI 'file:///home/volker/Desktop/%.flv' contains invalidly escaped characters The first debug warning for a file name containing #: 0:00:38.769803371 18862 0x97f2f70 WARN gio_src gstgiosrc.c:324:gst_gio_src_get_stream:<src-file:///home/volker/Desktop/#.flv> error: Could not open location file:///home/volker/Desktop for reading: Can't open directory
Confirming, setting target milestone (because it sounds trivial to fix; if it isn't, feel free to defer it).
Oops, I missed out some significant lines of the log, so again: for # INFO [19432] [0x -4876d940] "<Discoverer at 0xa9f574c>" discoverer Mar 06 16:24:12 addUri: filename: file:///home/volker/#.flv (pitivi/discoverer.py:150) INFO [19432] [0x -4876d940] "<Discoverer at 0xa9f574c>" discoverer Mar 06 16:24:12 _analyze: Analyzing file:///home/volker/#.flv (pitivi/discoverer.py:403) 0:00:10.190911990 19432 0xa24ef70 WARN filesrc gstfilesrc.c:1154:gst_file_src_uri_set_uri:<src-file:///home/volker/#.flv> Invalid URI 'file:///home/volker/#.flv' for filesrc: The local file URI 'file:///home/volker/#.flv' may not include a '#' for %: INFO [19530] [0x -4873d940] "<Discoverer at 0x9c7070c>" discoverer Mar 06 16:39:18 addUri: filename: file:///home/volker/%.flv (pitivi/discoverer.py:150) INFO [19530] [0x -4873d940] "<Discoverer at 0x9c7070c>" discoverer Mar 06 16:39:18 _analyze: Analyzing file:///home/volker/%.flv (pitivi/discoverer.py:403) 0:00:41.196006703 19530 0x94c9f70 WARN filesrc gstfilesrc.c:1154:gst_file_src_uri_set_uri:<src-file:///home/volker/%.flv> Invalid URI 'file:///home/volker/%.flv' for filesrc: The URI 'file:///home/volker/%.flv' contains invalidly escaped characters
commit 8ef1474e3c045b813963abf4128ba61f49e710fa Author: Alessandro Decina <alessandro.d@gmail.com> Date: Sun Mar 7 12:53:28 2010 +0100 Pass valid uris for filenames to discoverer. Fixes #611996.
Actually, it still happens if you use drag and drop.
commit 20ce1fb1be3ba034176016fc7ba8abeb1e244c49 Author: Alessandro Decina <alessandro.d@gmail.com> Date: Sun Mar 7 19:39:05 2010 +0100 Fix #611996 some more.
Importing still fails if you drag a folder to the source list, if the folder or the files in it have the mentioned characters in their names.
commit d1175d6e0fe6000289fece67cba15de3d8902f27 Author: Alessandro Decina <alessandro.d@gmail.com> Date: Sun Mar 7 23:28:28 2010 +0100 Fix #611996 even more (folders now).