commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Laurent Goncalves (JIRA)" <j...@apache.org>
Subject [jira] Updated: (FILEUPLOAD-144) Parameters values are lost
Date Thu, 20 Sep 2007 17:31:31 GMT

     [ https://issues.apache.org/jira/browse/FILEUPLOAD-144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Laurent Goncalves updated FILEUPLOAD-144:
-----------------------------------------

    Attachment: correction_with_test_cases_in_distribution.zip

"correction_with_test_cases_in_distribution.zip" => Here is the modifications i've done
in the distribution.
Test case is included to reproduce the problem.
The old makeAvailable() method is commented.
I've found and corrected a new bug with my previous correction, so makeAvailable() method
has changed since my last post.

Laurent

> Parameters values are lost
> --------------------------
>
>                 Key: FILEUPLOAD-144
>                 URL: https://issues.apache.org/jira/browse/FILEUPLOAD-144
>             Project: Commons FileUpload
>          Issue Type: Bug
>    Affects Versions: 1.2
>         Environment: JBoss 4 / XP / Servlet / both Firefox and IE
>            Reporter: Vera Mickael
>            Priority: Critical
>         Attachments: correction_with_test_cases_in_distribution.zip, MultipartStream.java,
test.fileupload.zip, test.fileupload.zip
>
>
> 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. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message