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 736267 - rtspconnection: Be more forgiving when parsing session header in requests
rtspconnection: Be more forgiving when parsing session header in requests
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal normal
: 1.5.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-09-08 13:39 UTC by Ognyan Tonchev (redstar_)
Modified: 2015-06-22 17:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
rtspconnection: ignore timeout in session request header (1.29 KB, patch)
2014-09-08 13:39 UTC, Ognyan Tonchev (redstar_)
reviewed Details | Review

Description Ognyan Tonchev (redstar_) 2014-09-08 13:39:08 UTC
Created attachment 285650 [details] [review]
rtspconnection: ignore timeout in session request header

According to the rfc the timeout parameter is only allowed in a session response header but some clients, like Honeywell VMS applications, send it as part of a session request header too:

PLAY rtsp://172.26.151.197/axis-media/media.amp?videocodec=h264&camera=1&videokeyframeinterval=8&resolution=1280x720&compression=41&fps=60&color=1 RTSP/1.0
CSeq: 3
User-Agent: Axis AMC
Session: fNpBsc72MwWfp%2BsL; timeout=60

Would you accept a patch which basically ignores everything from the semicolon to the end of the line when parsing session ids? Or perhaps checking for any non-allowed character?

Currently rtspconnection takes everything from the colon as session id.
Comment 1 Sebastian Dröge (slomo) 2014-09-08 15:51:24 UTC
Comment on attachment 285650 [details] [review]
rtspconnection: ignore timeout in session request header

Seems sensible to me
Comment 2 Wim Taymans 2014-09-09 09:39:06 UTC
commit 0ea1b559bf1706d35683db648ae511e97bf35a47
Author: Ognyan Tonchev <ognyan@axis.com>
Date:   Tue Sep 9 11:37:26 2014 +0200

    rtspconnection: ignore timeout in session request header
    
    The timeout parameter is only allowed in a session response header
    but some clients, like Honeywell VMS applications, send it as part
    of the session request header. Ignore everything from the semicolon
    to the end of the line when parsing session id.
    
    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=736267
Comment 3 Sebastian Dröge (slomo) 2015-06-22 17:52:30 UTC
This was actually not completely correct, fixup:

commit 18c610eddaff068e57bbe0f8dc7e268becb1bba6
Author: Sebastian Dröge <sebastian@centricular.com>
Date:   Mon Jun 22 19:51:32 2015 +0200

    rtspconnection: Only drop everything after the ; of a session header in requests
    
    For responses it is actually allowed and used to signal the timeout to the
    client!
    
    https://bugzilla.gnome.org/show_bug.cgi?id=736267