Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-2059

NettyWritable should use UTF-8 exact length to encode strings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • None
    • None
    • AMQP
    • None

    Description

      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.

       

      Attachments

        Activity

          People

            nigro.fra@gmail.com Francesco Nigro
            nigro.fra@gmail.com Francesco Nigro
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h