[Bug 743195] uri: Add parsing unit test based on GNet

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Jan 21 23:35:38 PST 2015


https://bugzilla.gnome.org/show_bug.cgi?id=743195
  GStreamer | gstreamer (core) | unspecified

--- Comment #9 from David Waring <david.waring at rd.bbc.co.uk> 2015-01-22 07:35:37 UTC ---
RFC 3986, Section 3, second paragraph
(https://tools.ietf.org/html/rfc3986#section-3)
  "When authority is present, the path must
   either be empty or begin with a slash ("/") character. When
   authority is not present, the path cannot begin with two slash
   characters ("//")."

So if the authority part is present ("//" [userinfo "@"] host [":" port]), then
the path must be absolute or not present at all. If there's no authority part
then a path may start with almost any character.

Since host cannot contain ":" unless it is surrounded by square brackets, then
I believe that means that "//hostname:123path" is not a valid authority part.
If there's no authority part, the path cannot start with "//", so then the URI
is invalid.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list