Menu

#40 Incomplete request processes(+path)

open
nobody
None
5
2008-04-21
2008-04-21
No

As described in [ 1662041 ] there is still problem with communicating over different architectures.(ex: server on MacOS(PPC) and browser on Windows)
I attached two pathces, one is for re-producing this problem and the other is for fixing this problem.

-How to re-produce the bug

# patch -Np0 < reproduce-bug.patch
# cd src
# make unix
# ./shttped -root web

After that access to http://xxx/bug.html.
It POST param1=ppp&param2=ppp2, but because of this bug, this program print out following.

arg->in.buf : [POST /hello HTTP/1.1
Accept: text/javascript, text/html, application/xml, text/xml, */*
Accept-Language: ja
x-prototype-version: 1.5.1.2
Referer: http://192.168.0.3:8000/bug.html
x-requested-with: XMLHttpRequest
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Host: 192.168.0.3:8000
Content-Length: 23
Connection: Keep-Alive
Cache-Control: no-cache

]
val : []

After you aply "fix_incomplete_req.patch", this program print out following.

arg->in.buf : [param1=ppp1&param2=ppp2]
val : [ppp1]

These patches are against version 1.39.

Discussion

  • Hiroyuki Nakamura

    Re-produce this bug

     
  • Hiroyuki Nakamura

    Logged In: YES
    user_id=1349844
    Originator: YES

    File Added: reproduce-bug.patch

     
  • Hiroyuki Nakamura

    Logged In: YES
    user_id=1349844
    Originator: YES

    File Added: fix_incomplete_req.patch

     
  • Hiroyuki Nakamura

    Fix this bug

     
  • Sergey Lyubka

    Sergey Lyubka - 2008-05-27

    Logged In: YES
    user_id=215691
    Originator: NO

    Hi Hiroyuki,
    please note that your code that prints the input buffer is incorrect.

     

Log in to post a comment.

MongoDB Logo MongoDB