[
https://issues.apache.org/jira/browse/ARTEMIS-2059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16595010#comment-16595010
]
ASF GitHub Bot commented on ARTEMIS-2059:
-----------------------------------------
GitHub user franz1981 opened a pull request:
https://github.com/apache/activemq-artemis/pull/2274
ARTEMIS-2059 NettyWritable should use UTF-8 exact length to encode strings
NettyWritable.put(String) tries to enlarge the buffer used to write a UTF-8
string until ByteBufUtil.utf8MaxBytes.
That means that it will fail or will enlarge any ByteBuf that is perfectly
sized to contain the encoded string.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/franz1981/activemq-artemis ARTEMIS-2059
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/activemq-artemis/pull/2274.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2274
----
commit c5dda70250cc7cafb5779e99ad9f70619afc964d
Author: Francesco Nigro <nigro.fra@...>
Date: 2018-08-28T13:57:19Z
ARTEMIS-2059 NettyWritable should use UTF-8 exact length to encode strings
----
> NettyWritable should use UTF-8 exact length to encode strings
> -------------------------------------------------------------
>
> Key: ARTEMIS-2059
> URL: https://issues.apache.org/jira/browse/ARTEMIS-2059
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Components: AMQP
> Reporter: Francesco Nigro
> Assignee: Francesco Nigro
> Priority: Minor
> Fix For: 2.7.0
>
>
> NettyWritable.put(String) tries to enlarge the buffer used to write a UTF-8
> string until ByteBufUtil.utf8MaxBytes.
> That means that it will fail or will enlarge any ByteBuf that is perfectly
> sized to contain the encoded string.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)