Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-3284

JSON representation of Protobuf should use base64 encoding for 'bytes' fields.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.24.0
    • Component/s: stout
    • Labels:
    • Target Version/s:
    • Sprint:
      Twitter Mesos Q3 Sprint 3
    • Story Points:
      3

      Description

      Currently we encode 'bytes' fields as UTF-8 strings, which is lossy for binary data due to invalid byte sequences! In order to encode binary data in a lossless fashion, we can encode 'bytes' fields in base64.

      Note that this is also how proto3 does its encoding (see here), so this would make migration easier as well.

        Attachments

          Activity

            People

            • Assignee:
              bmahler Benjamin Mahler
              Reporter:
              bmahler Benjamin Mahler
              Shepherd:
              Vinod Kone
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: