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 759743 - dashdemux: getting clock compensation using HTTP HEAD uses an incorrect year
dashdemux: getting clock compensation using HTTP HEAD uses an incorrect year
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: 1.7.2
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-12-21 14:50 UTC by Florin Apostol
Modified: 2015-12-28 12:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed patch (1.09 KB, patch)
2015-12-21 14:53 UTC, Florin Apostol
none Details | Review
proposed patch (1.89 KB, patch)
2015-12-22 11:35 UTC, Florin Apostol
committed Details | Review
removed some unnecessary space trimming (943 bytes, patch)
2015-12-22 11:36 UTC, Florin Apostol
committed Details | Review

Description Florin Apostol 2015-12-21 14:50:08 UTC
In function gst_dash_demux_parse_http_head:
gst_date_time_new wants the year between 1 and 9999.
https://tools.ietf.org/html/rfc822#section-5 provides it as 2 digits.
We need to convert from 2 digit to 4 digit.
Comment 1 Florin Apostol 2015-12-21 14:53:06 UTC
Created attachment 317742 [details] [review]
proposed patch
Comment 2 Sebastian Dröge (slomo) 2015-12-22 08:23:44 UTC
This is obsoleted by https://tools.ietf.org/html/rfc2822#section-3.3

Still we probably need to be able to handle 2 digit years (obs-year) and 4 digit years, even if people using software that still uses 2 digit years should probably not be allowed on the Internet anymore.
Comment 3 Florin Apostol 2015-12-22 11:35:00 UTC
Created attachment 317779 [details] [review]
proposed patch

updated code and comments to refer to RFC5822
Comment 4 Florin Apostol 2015-12-22 11:36:46 UTC
Created attachment 317780 [details] [review]
removed some unnecessary space trimming
Comment 5 Sebastian Dröge (slomo) 2015-12-28 12:13:04 UTC
commit ef06d2a855def91f3f265ad540f965e0689b97ea
Author: Florin Apostol <florin.apostol@oregan.net>
Date:   Tue Dec 22 11:23:19 2015 +0000

    dashdemux: removed unnecessary space trimming in gst_dash_demux_parse_http_head
    
    sscanf has removed all spaces when it has constructed zone string. There is
    no need to search for leading spaces.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=759743

commit 09b21eacae9abda0f287171d86a08b0f4cf95b5d
Author: Florin Apostol <florin.apostol@oregan.net>
Date:   Mon Dec 21 14:50:15 2015 +0000

    dashdemux: accept 2 or 4 digit year when using HTTP HEAD for calculating clock compensation
    
    Convert year from 2 digits to 4 digits in gst_dash_demux_parse_http_head
    
    https://bugzilla.gnome.org/show_bug.cgi?id=759743
    
    Also updated references to Rfc822 to Rfc5322