You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Benjamin Mahler (JIRA)" <ji...@apache.org> on 2015/08/18 00:36:45 UTC

[jira] [Created] (MESOS-3284) JSON representation of Protobuf should use base64 encoding for 'bytes' fields.

Benjamin Mahler created MESOS-3284:
--------------------------------------

             Summary: JSON representation of Protobuf should use base64 encoding for 'bytes' fields.
                 Key: MESOS-3284
                 URL: https://issues.apache.org/jira/browse/MESOS-3284
             Project: Mesos
          Issue Type: Bug
          Components: stout
            Reporter: Benjamin Mahler
            Assignee: Benjamin Mahler


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|https://developers.google.com/protocol-buffers/docs/proto3?hl=en#json]), so this would make migration easier as well.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)