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 481200 - gstneonhttpsrc discards GET parameters from URL
gstneonhttpsrc discards GET parameters from URL
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other All
: Normal normal
: 0.10.6
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-09-28 08:27 UTC by Wouter Cloetens
Modified: 2007-09-28 11:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch for http get parameter discarding bug (2.19 KB, patch)
2007-09-28 08:39 UTC, Wouter Cloetens
committed Details | Review

Description Wouter Cloetens 2007-09-28 08:27:35 UTC
Please describe the problem:
gstneonhttpsrc's location parameter is parsed into components. The path is preserved, but the query argument of the URL are discarded, e.g. http://foo.bar/fubar?one=two&three=four is translated to http://foo.bar/fubar.

Steps to reproduce:
By specifying a location as suggested above.

Actual results:


Expected results:


Does this happen every time?


Other information:
I have a patch that fixes this.
Comment 1 Wouter Cloetens 2007-09-28 08:39:58 UTC
Created attachment 96319 [details] [review]
Patch for http get parameter discarding bug
Comment 2 Sebastian Dröge (slomo) 2007-09-28 09:53:42 UTC
Thanks, committed with a minor change (only set the query string to path+"?"+query if query is != NULL, otherwise just use path).

2007-09-28  Sebastian Dröge  <slomo@circular-chaos.org>

        Patch by: Wouter Cloetens <wouter@mind.be>

        * ext/neon/gstneonhttpsrc.c: (gst_neonhttp_src_dispose),
        (gst_neonhttp_src_set_location),
        (gst_neonhttp_src_send_request_and_redirect):
        * ext/neon/gstneonhttpsrc.h:
        Don't discard GET parameters from URL if existing.
        Fixes #481200.
Comment 3 Wouter Cloetens 2007-09-28 11:07:09 UTC
>Thanks, committed with a minor change (only set the query string to
>path+"?"+query if query is != NULL, otherwise just use path).

That seems superfluous. If the third parameter to g_strjoin() is NULL, it will be interpreted as a sentinel. I haven't checked it, but I expect that to prevent the separator from being appended to the returned string.
Comment 4 Sebastian Dröge (slomo) 2007-09-28 11:59:05 UTC
From looking at the sources you're right, it's not mentioned in the docs though. Whatever, I'll change it back with the next commit somewhere in the future :)