Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Duplicate
-
1.2
-
None
-
None
-
JBoss 4 / XP / Servlet / both Firefox and IE
Description
When parsing a request with the streaming API, some parameters loose their values. I can easily reproduce the problem when a lot of parameters are submitted (about 400 in a table). My code is as follows :
final FileItemStream itemStream = anItemIterator.next();
final String fieldName = itemStream.getFieldName();
System.out.print("Field " + fieldName);
InputStream stream = itemStream.openStream();
final String value = Streams.asString(stream, "UTF-8");
The last statement sometimes returns a value and sometimes not. Sometimes I can retreive all parameters, sometimes I loose 3 or 4 parameters. I reproduced the problem on two computers. I have a very small application with a servlet of 69 lines that reproduces the problem, the project is attached to this issue.
Attachments
Attachments
Issue Links
- blocks
-
FILEUPLOAD-135 InputStream created with Streaming API returns EOF on first read() for short files uploaded from FireFox over HTTPS
- Closed