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 532852 - CRITICAL **: totem_pl_parser_parse_with_base: assertion `strstr (url, "://") != NULL' failed
CRITICAL **: totem_pl_parser_parse_with_base: assertion `strstr (url, "://") ...
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gio
2.16.x
Other Linux
: Normal normal
: ---
Assigned To: Alexander Larsson
gtkdev
Depends on:
Blocks:
 
 
Reported: 2008-05-12 22:16 UTC by Nicolas Mailhot
Modified: 2008-05-13 12:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
glib-wrong-scheme-validation.patch (569 bytes, patch)
2008-05-13 09:45 UTC, Bastien Nocera
committed Details | Review

Description Nicolas Mailhot 2008-05-12 22:16:03 UTC
$ totem 2008-05-13T00:08:13+02:00--2008-05-13T00:08:33+02:00.ogg 

** (totem:11750): CRITICAL **: totem_pl_parser_parse_with_base: assertion `strstr (url, "://") != NULL' failed

totem-2.23.2-2.fc9.x86_64
Comment 1 Nicolas Mailhot 2008-05-12 22:17:55 UTC
totem file://2008-05-13T00:13:29+02:00--2008-05-13T00:13:49+02:00.ogg
** Message: Error: Could not open resource for reading.
gstgnomevfssrc.c(841): gst_gnome_vfs_src_start (): /play/source:
Could not open vfs file "file:" for reading: Invalid URI (13)
Comment 2 Nicolas Mailhot 2008-05-12 22:19:49 UTC
totem file:///srv/video/2008-05-13T00:13:29+02:00--2008-05-13T00:13:49+02:00.ogg works, but it's a bit complex
Comment 3 Bastien Nocera 2008-05-13 09:22:34 UTC
The second one obviously won't work, the first one is me missing a "g_file_new_for_commandline_arg()" somewhere.
Comment 4 Bastien Nocera 2008-05-13 09:44:37 UTC
Actually, it's a bug in glib. g_file_new_for_commandline_arg() thinks that "2008-05-13T00" is a valid scheme, but it's not:
   Scheme names consist of a sequence of characters beginning with a
   lower case letter and followed by any combination of lower case
   letters, digits, plus ("+"), period ("."), or hyphen ("-").
Comment 5 Bastien Nocera 2008-05-13 09:45:13 UTC
Created attachment 110840 [details] [review]
glib-wrong-scheme-validation.patch

Patch to fix the broken check.
Comment 6 Bastien Nocera 2008-05-13 12:43:38 UTC
Fixed in glib-2-16 and trunk

2008-05-13  Bastien Nocera  <hadess@hadess.net>

	* gfile.c (has_valid_scheme): A URI scheme must start with a
	letter, even if later more characters are allowed (#532852)