Bug in bb 1.3.1, httpd with POST

Alexander Griesser alexander.griesser at lkh-vil.or.at
Sun Feb 11 16:27:23 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Denis Vlasenko wrote:
> I would like to try it myself. Do you have a small testcase?

Well, I have this cgi-script that I built to try it out.

test.cgi:
- ------------------- 8< -------------------
#!/bin/sh

echo "<html>
<body>
<form method="post" action="/cgi-bin/test.cgi">
<input type="text" name="test">
<input type="submit" name="submit">
</form>"

if [ "$REQUEST_METHOD" = "POST" ]; then
  # This doesn't work at all, it hangs with this
  read QUERY_STRING
  echo $QUERY_STRING

  # This does only work, if the destination file has
  # already been created before, don't know why, but
  # I debugged this fact yesterday and it is reproducible
  # If the file is not available when cat tries to write
  # the data to it, it hangs as `read` does in the above
  # lines
  cat >/tmp/query
  cat /tmp/query
fi

echo "</body>
</html>"
- ------------------- 8< -------------------

I hope, this is what you meant with "testcase". If not, please tell
me what I need to provide so that you can reproduce it.

ciao,
- --
Alexander Griesser (Netzwerkadministration)
E-Mail: alexander.griesser at lkh-vil.or.at | Web: http://www.lkh-vil.or.at
KABEG LKH Villach | Nikolaigasse 43 | 9500 Villach
Tel.:   +43 4242 208 3061 | Fax.:   +43 4242 971 3061
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFz0Pr66HVD6KUm1oRAkn4AKCjovrAqECmb73a2ts1KE8RiKPVZgCfZBSd
WKUmDKwPnm/riOcFFbOqUV0=
=hai/
-----END PGP SIGNATURE-----



More information about the busybox mailing list