You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "John Jian (JIRA)" <ji...@apache.org> on 2016/12/28 12:54:58 UTC

[jira] [Commented] (FILEUPLOAD-245) DiskFileItem.get() may not fully read the data

    [ https://issues.apache.org/jira/browse/FILEUPLOAD-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15782841#comment-15782841 ] 

John Jian commented on FILEUPLOAD-245:
--------------------------------------

Hi Sebb,

Please attach your test case to show when DiskFileItem.get() can not fully read the data.
I'm using 1.3.1 version and facing a problem which may relate to this ticket.
Thank you.

> DiskFileItem.get() may not fully read the data
> ----------------------------------------------
>
>                 Key: FILEUPLOAD-245
>                 URL: https://issues.apache.org/jira/browse/FILEUPLOAD-245
>             Project: Commons FileUpload
>          Issue Type: Bug
>    Affects Versions: 1.3.1
>            Reporter: Sebb
>             Fix For: 1.4
>
>
> DiskFileItem.get() invokes InputStream#read, and appears to assume that it will always read all available data. However that is not necessarily the case.
> It would be safer to use the Commons IO method IOUtils#readFully
> [The component already depends on CommonsIO]



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