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

Claus Ibsen resolved CAMEL-6302.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.12.0
                   2.11.1
                   2.10.5

Thanks for the patches.
                
> Mina UDP default codec should keep the data as byte[] 
> ------------------------------------------------------
>
>                 Key: CAMEL-6302
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6302
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-mina, camel-mina2
>    Affects Versions: 2.10.4
>            Reporter: Thomas Termin
>            Assignee: Claus Ibsen
>             Fix For: 2.10.5, 2.11.1, 2.12.0
>
>         Attachments: camel-mina2.patch, camel-mina.patch
>
>
> The MinaUdpProtocolCodecFactory on the consumer side decodes data from an udp 
> datagram to a byte[].
>     byte[] bytes = context.getTypeConverter().convertTo(byte[].class, in);
> On the provider side where it gets back to the wire it gets converted to a 
> string:
>     String value = context.getTypeConverter().convertTo(String.class, 
> message);
> and then set to the ByteBuffer with the given charset.
> The result is that the original datagram is not valid anymore. The default 
> codec should the data convert to a byte array or keep the data as byte array. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to