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

Robbie Gemmell updated PROTON-883:
----------------------------------
    Fix Version/s:     (was: 0.9.1)
                   0.10

Updating fix version to 0.10 as this wasnt in 0.9.1.

> Return the raw bytes from a transport buffer in Ruby.
> -----------------------------------------------------
>
>                 Key: PROTON-883
>                 URL: https://issues.apache.org/jira/browse/PROTON-883
>             Project: Qpid Proton
>          Issue Type: Improvement
>          Components: ruby-binding
>            Reporter: Darryl L. Pierce
>            Assignee: Darryl L. Pierce
>             Fix For: 0.10
>
>         Attachments: 0001-PROTON-883-Wrap-pn_transport_peek-for-Ruby.patch
>
>
> When retrieving a message that contains raw bytes rather than strings, the 
> Swig bindings can return a truncated string. This is due to the method 
> SWIG_FromCharPtr stopping at the first 0 byte since it's treating the content 
> as a C string and not as an array of bytes.
> The code should, instead, using something like SWIG_FromCharPtrAndSize to 
> return the full content and not guess at the length based on null bytes.



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

Reply via email to