2015-07-18, 07:58
I have a rather complex authentication for live feeds which requires cookies to be set correctly by the player.
There seems to be an issue where there are multiple cookies set for a domain and some have an expiry = 0.
I have posted the pertinent portion of the log here: http://xbmclogs.com/pta4wx8du
The main gist is:
EDIT: I have no idea why the data above shows a commit url - if you do a quote it goes away
Running Isengard 15.0 RC2 on Windows 8.1.
As you can see in the later request with compound cookies the hdntl expiry is earlier than the one being set prior to the later request (meaning it's not right). The exp=1437279261 cookie is the one that is in the cookies.dat file, rather than the one being set in the earlier request. I think that a expire=0 is a session cookie, so I'm not sure why this is in the cookies.dat file.
I'm not sure if it matters or not, but there are cookies also set for similar domains in the cookie.dat file:
.cookingchanneltv-i.akamaihd.net
.b-diynetwork-i.akamaihd.net
.travelchannel-i.akamaihd.net
If I just keep playing the same channel it keeps working ok. If I play any other one with a similar domain name, the original one stops working because the cookie is wrong (not up to date). I'm not sure if this is because of the way session cookies are handled, the compound cookies or some weird domain match issue.
I had to remove the tokens from some of the requests to maintain privacy in the logs.
This is a really irritating issue and was hard to even narrow down. I'm not sure about my conclusions, but I think they're in the neighborhood of the problem.
Let me know what else is needed to help resolve.
There seems to be an issue where there are multiple cookies set for a domain and some have an expiry = 0.
I have posted the pertinent portion of the log here: http://xbmclogs.com/pta4wx8du
The main gist is:
Code:
--->>00:15:14 T:2840 DEBUG: Curl::Debug - TEXT: Replaced cookie hdntl="exp=1437279309~acl=%2f*~data=hdntl~hmac=b08e1b31a89f71a44ef5d077aef183acf685e3f9fb1b3675764128e855f1c974" for domain hgtv-i.akamaihd.net, path /, expire 0
--->>00:15:14 T:2840 DEBUG: Curl::Debug - HEADER_IN: Set-Cookie: hdntl=exp=1437279309~acl=%2f*~data=hdntl~hmac=b08e1b31a89f71a44ef5d077aef183acf685e3f9fb1b3675764128e855f1c974; path=/; domain=hgtv-i.akamaihd.net;
.......
--->>00:15:14 T:564 DEBUG: Curl::Debug - HEADER_OUT: Cookie: _alid_=oLDVFcHkrEccedJC8yPzCg==; hdntl=exp=1437279261~acl=%2f*~data=hdntl~hmac=310d36eaca21c199cdb66b15f797ac972b494b33d7487adb6e4dc1b7b81133e6
Running Isengard 15.0 RC2 on Windows 8.1.
As you can see in the later request with compound cookies the hdntl expiry is earlier than the one being set prior to the later request (meaning it's not right). The exp=1437279261 cookie is the one that is in the cookies.dat file, rather than the one being set in the earlier request. I think that a expire=0 is a session cookie, so I'm not sure why this is in the cookies.dat file.
I'm not sure if it matters or not, but there are cookies also set for similar domains in the cookie.dat file:
.cookingchanneltv-i.akamaihd.net
.b-diynetwork-i.akamaihd.net
.travelchannel-i.akamaihd.net
If I just keep playing the same channel it keeps working ok. If I play any other one with a similar domain name, the original one stops working because the cookie is wrong (not up to date). I'm not sure if this is because of the way session cookies are handled, the compound cookies or some weird domain match issue.
I had to remove the tokens from some of the requests to maintain privacy in the logs.
This is a really irritating issue and was hard to even narrow down. I'm not sure about my conclusions, but I think they're in the neighborhood of the problem.
Let me know what else is needed to help resolve.