commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralf Hauser (Jira)" <>
Subject [jira] [Commented] (FILEUPLOAD-265) .MultipartStream$MalformedStreamException: Stream ended unexpectedly
Date Thu, 10 Sep 2020 09:36:00 GMT


Ralf Hauser commented on FILEUPLOAD-265:

happens for us (intermittently) after the upgrade from tomcat8 to tomcat9


Others also have it



do we newly have to set maxPostSize or maxSavePostSize in tomcat's global web.xml ?

> .MultipartStream$MalformedStreamException: Stream ended unexpectedly
> --------------------------------------------------------------------
>                 Key: FILEUPLOAD-265
>                 URL:
>             Project: Commons FileUpload
>          Issue Type: Bug
>    Affects Versions: 1.3.1
>         Environment: httpclient
>            Reporter: zhumingu
>            Priority: Major
>              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