After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 611996 - Files with % and # in the file name can't be imported by drag and drop
Files with % and # in the file name can't be imported by drag and drop
Status: RESOLVED FIXED
Product: pitivi
Classification: Other
Component: Media library
Git
Other Linux
: Normal normal
: 0.13.4
Assigned To: Pitivi maintainers
Pitivi maintainers
Depends on:
Blocks:
 
 
Reported: 2010-03-06 15:01 UTC by DELETED
Modified: 2010-03-09 14:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description DELETED 2010-03-06 15:01:15 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
Comment 1 Jean-François Fortin Tam 2010-03-06 15:20:14 UTC
Confirming, setting target milestone (because it sounds trivial to fix; if it isn't, feel free to defer it).
Comment 2 DELETED 2010-03-06 15:43:02 UTC
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
Comment 3 Alessandro Decina 2010-03-07 12:01:06 UTC
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.
Comment 4 Jean-François Fortin Tam 2010-03-07 18:29:38 UTC
Actually, it still happens if you use drag and drop.
Comment 5 Alessandro Decina 2010-03-07 21:17:05 UTC
commit 20ce1fb1be3ba034176016fc7ba8abeb1e244c49
Author: Alessandro Decina <alessandro.d@gmail.com>
Date:   Sun Mar 7 19:39:05 2010 +0100

    Fix #611996 some more.
Comment 6 DELETED 2010-03-07 21:40:36 UTC
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.
Comment 7 Alessandro Decina 2010-03-09 14:40:18 UTC
commit d1175d6e0fe6000289fece67cba15de3d8902f27
Author: Alessandro Decina <alessandro.d@gmail.com>
Date:   Sun Mar 7 23:28:28 2010 +0100

    Fix #611996 even more (folders now).