You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by "Rafael H. Schloming (JIRA)" <ji...@apache.org> on 2014/09/24 20:06:34 UTC

[jira] [Resolved] (PROTON-661) pn_message_save_* do not return correct message size when PN_OVERFLOW

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

Rafael H. Schloming resolved PROTON-661.
----------------------------------------
       Resolution: Fixed
    Fix Version/s: 0.8

> pn_message_save_* do not return correct message size when PN_OVERFLOW
> ---------------------------------------------------------------------
>
>                 Key: PROTON-661
>                 URL: https://issues.apache.org/jira/browse/PROTON-661
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-c
>    Affects Versions: 0.4, 0.5, 0.7
>         Environment: All plataforms
>            Reporter: Miguel da Rocha Correia Lima
>            Assignee: Rafael H. Schloming
>            Priority: Critical
>             Fix For: 0.8
>
>         Attachments: landix-ret-size-message-save.patch
>
>
> Expected behavior:
> When you use pn_message_save* functions API, you pass char *data  and size_t *size. If the size IS NOT enough to save mesage body text, this functions return in size_t *size variable, the necessary buffer size and return PN_OVERFLOW status. 
> Behavior observed:
> The pn_message_save*  functions API return PN_OVERFLOW status and DO NOT return a correct value of necessary buffer.
> Patch to fix expected behavior  is attached:



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