commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jochen Wiedmann (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FILEUPLOAD-261) Streaming API fails with file size < 8k
Date Wed, 08 Jul 2015 10:12:04 GMT

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

Jochen Wiedmann resolved FILEUPLOAD-261.
----------------------------------------
    Resolution: Cannot Reproduce

Your assertion is that the streaming API won't handle files < 8K. As the streaming API
is internally used by the blocking API (or, in other words: always), this would translate
to Commons Fileupload won't handle files < 8K. Which is plainly wrong, as Commons Fileupload
is happily processing such files on thousands of web sites and all around the world every
day. Hence, I am closing this as CANTREPRODUCE.


> Streaming API fails with file size  < 8k
> ----------------------------------------
>
>                 Key: FILEUPLOAD-261
>                 URL: https://issues.apache.org/jira/browse/FILEUPLOAD-261
>             Project: Commons FileUpload
>          Issue Type: Bug
>    Affects Versions: 1.3.1
>            Reporter: Luca Looz
>            Priority: Critical
>
> I'm getting a SocketTimeoutException when using the Streaming API and uploading a file
with a size smaller than 8k.
> {code}
> java.net.SocketTimeoutException
>             at java.net.PlainSocketImpl.read(PlainSocketImpl.java:491)
>             at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46)
>             at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:240)
>             at java.io.PushbackInputStream.read(PushbackInputStream.java:185)
>             at org.apache.commons.fileupload.MultipartStream$ItemInputStream.makeAvailable(MultipartStream.java:999)
>             at org.apache.commons.fileupload.MultipartStream$ItemInputStream.read(MultipartStream.java:903)
>             at java.io.InputStream.read(InputStream.java:162)
>             at org.apache.commons.fileupload.util.Streams.copy(Streams.java:100)
>             at org.apache.commons.fileupload.util.Streams.copy(Streams.java:70)
>             at org.apache.commons.fileupload.MultipartStream.readBodyData(MultipartStream.java:593)
>             at org.apache.commons.fileupload.MultipartStream.discardBodyData(MultipartStream.java:617)
>             at org.apache.commons.fileupload.MultipartStream.skipPreamble(MultipartStream.java:634)
>             at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.findNextItem(FileUploadBase.java:1023)
>             at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.<init>(FileUploadBase.java:1003)
>             at org.apache.commons.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:310)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message