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

ApiUtils#writeShortString uses String length instead of byte length

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.8.0
    • Component/s: clients, core
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: