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 771756 - GstUri parsing is not is not reciprocal for file URIs
GstUri parsing is not is not reciprocal for file URIs
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
1.8.3
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-09-21 10:04 UTC by Marc Leeman
Modified: 2018-11-03 12:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
uri: Check that gst_uri_from_string() and to_string() give the same result (1.63 KB, patch)
2016-09-21 14:03 UTC, Sebastian Dröge (slomo)
none Details | Review

Description Marc Leeman 2016-09-21 10:04:06 UTC
1. Create a GstUri from a string "file:///home/me/myfile" with gst_uri_from_string

2. Generate a string from the GstUri (gst_uri_to_string) and you will end up with
"file:/home/my/myfile". As far as I know, the latter is not a valid uri.

Workaround; use file://///home/me/myfile :-/
Comment 1 Sebastian Dröge (slomo) 2016-09-21 14:03:25 UTC
Created attachment 336000 [details] [review]
uri: Check that gst_uri_from_string() and to_string() give the same result
Comment 2 Sebastian Dröge (slomo) 2016-09-21 14:05:38 UTC
Or use file://home/me/myfile instead :) But yes, there's a bug here, it should consider the empty "hostname" and reconstruct that again later.
Comment 3 Tim-Philipp Müller 2018-10-22 11:30:21 UTC
See also: https://bugzilla.gnome.org/show_bug.cgi?id=797146
Comment 4 GStreamer system administrator 2018-11-03 12:36:14 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gstreamer/issues/188.