[ http://issues.apache.org/jira/browse/QPID-175?page=all ]

Rob Godfrey updated QPID-175:
-----------------------------

    Attachment: QPID-175.patch

Fixed clearBody to create new buffer rather than clear existing (fixed size) 
buffer.

Added unit test

> StreamMessage can throw BufferOverflowException when writing to a received 
> message after clearing
> -------------------------------------------------------------------------------------------------
>
>                 Key: QPID-175
>                 URL: http://issues.apache.org/jira/browse/QPID-175
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>    Affects Versions: M1
>            Reporter: Robert Greig
>         Assigned To: Robert Greig
>         Attachments: QPID-175.patch
>
>
> If you call clearBody on a received StreamMessage, and then attempt to write 
> data to that message that is larger than the original payload, you get a 
> BufferOverFlowException. This is because the underlying buffer is allocated 
> with autoexpand set to false on receipt of a message.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to