commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jochen Wiedmann (JIRA)" <>
Subject [jira] [Commented] (FILEUPLOAD-265) .MultipartStream$MalformedStreamException: Stream ended unexpectedly
Date Tue, 10 Mar 2015 14:23:38 GMT


Jochen Wiedmann commented on FILEUPLOAD-265:

We won't be able to analyze this, unless you use tcpmon, Wireshark, or a similar tool to create
a dump of the conversation between client, and server and attach it here.

> .MultipartStream$MalformedStreamException: Stream ended unexpectedly
> --------------------------------------------------------------------
>                 Key: FILEUPLOAD-265
>                 URL:
>             Project: Commons FileUpload
>          Issue Type: Bug
>    Affects Versions: 1.3.1
>         Environment: httpclient
>            Reporter: zhumingu
>              Labels: Stream, ended, unexpectedly
> When uploading files using the browser,it does not happen.But when submission using tools
with 'multipart/form-data',for example httpclient,advanced rest client and so on,
> Only submit a text field, file field is empty, it will report the following exception:
> org.apache.commons.fileupload.MultipartStream$MalformedStreamException: Stream ended
> 	at org.apache.commons.fileupload.MultipartStream.readHeaders(
> 	at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.findNextItem(
> 	at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.<init>(
> 	at org.apache.commons.fileupload.FileUploadBase.getItemIterator(
> 	at org.apache.commons.fileupload.FileUploadBase.parseRequest(
> 	at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(
> A simple analysis that, when using the browser, file is not selected, the default browser
will join the empty data file-part.
> But the use of tools such as httpclient, when the file is empty, it do not contain the
documents data.

This message was sent by Atlassian JIRA

View raw message