Re: ambiguous POST data truncation.

Stipe Tolj <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization Wapme Systems AG
Message-ID <[email protected]>
Vjacheslav Chekushin wrote:
> 
> Hi, list
> 
> In wsp_server_method_states.def:
> 
>                  /*
>                   * The Siemens S35 adds an extra NUL character to the end
>                   * of the request body which may not work with certain cgi
>                   * scripts. It is removed here by truncating the length.
>                   */
>                  req_body_size = octstr_len(pdu->u.Post.data);
>                  if(octstr_get_char(pdu->u.Post.data,(req_body_size - 1)) == 0)
>                          octstr_truncate(pdu->u.Post.data,(req_body_size - 1));
> 
> I encounter the problem with truncated NULL for binary POSTs.
> Some samsung phones send this trailing NULL in jpegs. WAP gw truncate it.
> Samsung phone fails to receive such truncated message.
> I remove this ambiguous truncation to fix the problem.
> I'm not sure about these "certain cgi scripts" but to remove some data from POST
> not a good solution.

hmmm, cvs says this section has been checked in revision 1.1 from
'dark', which is Richard Brakman (AFAIR). and the date is Mon Nov 20
19:55:54 2000 UTC (3 years ago), which is pretty old.

@Aarno, any idea why this truncing was necessary and if we can
consider this as a BUG workarround of the specific device which we can
resolve?

Stipe

mailto:[email protected]
-------------------------------------------------------------------
Wapme Systems AG

Münsterstr. 248
40470 Düsseldorf, NRW, Germany

phone: +49.211.74845.0
fax: +49.211.74845.299

mailto:[email protected]
http://www.wapme-systems.de/
-------------------------------------------------------------------

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.2.2 (Cygwin)

mIsEP6mcYwEEAMDnUiUwrbb+xwTFWN6TxF2+XZu7/alwJMeCwMBRvXtPZqfjpPhS
OkBpU0F4TrVuugz1HINTSaJTYq10AzDQXp5NkyWgckqW79nPAWuOX0dicbJk+cN2
nM2TI4KaxUDe6u8hghNEnH/i2lXsUu9apnP/iixzV81VC2je3uc9hZpnAAYptEVT
dGlwZSBUb2xqIChUZWNobm9sb2d5IENlbnRlciAmIFJlc2VhcmNoIExhYikgPHRv
bGpAd2FwbWUtc3lzdGVtcy5kZT6ItAQTAQIAHgUCP6mcYwIbAwYLCQgHAwIDFQID
AxYCAQIeAQIXgAAKCRABV0w1BqPYRuSqA/wPzsQxao2YePENCtgRTrO86U6zg3sl
OcS6CJFI4FZP5h/xD3GRsNH1+MPSvZlomDdpFnr547DGz/Kq9MXuQwVvlVig5yWZ
K5dtKp1r5YLhxJQBhfirZbRFFnYmf19f18J8OoS28tuFVftDl1AIwJS3HLyBTv6H
g2HyLAEKQIp30Q==
=aYCI
-----END PGP PUBLIC KEY BLOCK-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.