<div dir="ltr">no offense to the OP, but i love Maxim.  Direct and to the point, and in this case, as usual, he is correct.  You should not look at what the requester wants, before understanding what the sender should provide.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 25, 2020 at 2:18 PM Maxim Dounin <<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello!<br>
<br>
On Thu, Jun 25, 2020 at 02:02:35PM -0400, anish10dec wrote:<br>
<br>
> Thanks Maxim<br>
> <br>
> Actually null character is not being generated by Client .<br>
> <br>
> We are using below module to validate the tokens<br>
> <a href="https://github.com/kaltura/nginx-akamai-token-validate-module" rel="noreferrer" target="_blank">https://github.com/kaltura/nginx-akamai-token-validate-module</a><br>
> <br>
> This is being caused by akamai_token_validate_strip_token directive which<br>
> strips the token and forwards request to upstream server.<br>
> <br>
> While striping the token and passing the remaining request  to upstream<br>
> stream its appending null character at the end.<br>
> If there is no any additional query param in request apart from token , then<br>
> there is no issue in handling.<br>
> <br>
> <a href="http://10.49.120.61/folder/Test.m3u8?token=st=1593095161~exp=1593112361~acl=/*~hmac=60d9c29a65d837b203225318d1c69e205037580a08bf4417d4a1e237e5a2f5b6&uid=abc123" rel="noreferrer" target="_blank">http://10.49.120.61/folder/Test.m3u8?token=st=1593095161~exp=1593112361~acl=/*~hmac=60d9c29a65d837b203225318d1c69e205037580a08bf4417d4a1e237e5a2f5b6&uid=abc123</a><br>
> <br>
> Request passed to upstream is as below which is causing problem<br>
> <br>
> GET /folder/Test.m3u8?uid=abc123\x00<br>
<br>
So the module is broken and needs to be fixed.<br>
<br>
-- <br>
Maxim Dounin<br>
<a href="http://mdounin.ru/" rel="noreferrer" target="_blank">http://mdounin.ru/</a><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div>