You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/07/24 20:05:47 UTC
DO NOT REPLY [Bug 11137] New: -
POST operation fails with many textboxes in form
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11137>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11137
POST operation fails with many textboxes in form
Summary: POST operation fails with many textboxes in form
Product: Tomcat 3
Version: 3.3.1 Final
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: Critical
Priority: Other
Component: Unknown
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: dlindquist@castoracer.com
Using Tomcat 3.3.1 final and JDK 1.3 under Windows XP, a POST operation that
submits the values of many textboxes to an HttpServlet subclass will "fail".
The POST operation in the servlet is called, but after it completes,
a "network connection" error occurs (presumably the connection is simply
rudely severed). The odd time the operation succeeds and proper output is
displayed. The percentage of time that the operation fails is directly
proportional to the number of textboxes on the form.
This occurs using both IE and Netscape (IE either hangs or reports page not
found, Netscape reports "Network connection failure"), but only seems to occur
under Windows XP (tested on both Win 98 and Win XP) -- under Windows 98 the
problem could not be reproduced. The java environment was identical in both
cases.
A simple test case is provided:
-----testpostbug.java-----8<-------------------
import javax.servlet.http.*;
import java.io.PrintWriter;
import java.util.*;
public class testpostbug extends javax.servlet.http.HttpServlet
{
protected void doGet(HttpServletRequest req,HttpServletResponse resp)
throws javax.servlet.ServletException, java.io.IOException
{
PrintWriter writer = resp.getWriter();
writer.println("doing GET");
writer.flush();
}
protected void doPost(HttpServletRequest req, HttpServletResponse resp)
throws javax.servlet.ServletException, java.io.IOException
{
PrintWriter writer = resp.getWriter();
writer.println("doing POST");
writer.flush();
}
}
-------------------8<-------------------
-----test.html-----8<-------------------
<html>
<body><form method="POST"
action="http://localhost:8080/webapp/servlet/testpostbug">
<input type="text" maxlength="50" name="one" value="one">
*** REPEAT ABOVE INPUT BOX FOR 100 TIMES WITH _DIFFERENT NAMES_ ***
*** BE SURE TO INCLUDE VALUES FOR THE TEXTBOXES ***
<input type="submit" name="submit" value="submit">
</form>
</body>
</html>
-------------------8<-------------------
(This test case is available as a ZIP file upon request.)
Be sure to properly modify the URL in the form tag in the html file, and to
replace the ***'d comments with actual <input> boxes.
Clicking the "submit" button on this webpage will attempt to submit to the
servlet, causing the error. It will likely work on the first attempt -- hit
the "back" button and click "submit" again, and it will fail.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>