Kafka
  1. Kafka
  2. KAFKA-680

ApiUtils#writeShortString uses String length instead of byte length

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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

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

        Activity

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development