Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-680

ApiUtils#writeShortString uses String length instead of byte length

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.8.0
    • clients, core
    • None

    Description

      Instead of using the length of the encoded bytes, writeShortString is using String#length. If non single-byte characters are encoded, then things go wrong then decoding the string with readShortString

      Attachments

        1. KAFKA-680.patch
          1 kB
          David Arthur
        2. KAFKA-680v1.patch
          5 kB
          David Arthur

        Activity

          People

            mumrah David Arthur
            mumrah David Arthur
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: