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

Sergey Beryozkin commented on CXF-7025:
---------------------------------------

Can you clarify where exactly a problem is ? This code has been successfully 
working for a long time.
in.read(buf) should read 2K, are you saying that even though 2K is available, 
it returns less than 2K ?

> Find boundary from InputStream
> ------------------------------
>
>                 Key: CXF-7025
>                 URL: https://issues.apache.org/jira/browse/CXF-7025
>             Project: CXF
>          Issue Type: Bug
>          Components: Core, JAX-RS
>    Affects Versions: 3.1.4
>            Reporter: Petr Havlena
>
> in method AttachmentDeserializer.findBoundaryFromInputStream line: "int i = 
> in.read(buf)" is invalid, because read returns "some number of bytes from the 
> input stream and stores them into the buffer array b" so you should check 
> result from read method and repeat reading if neccesary



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

Reply via email to