You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Kapil Arya (JIRA)" <ji...@apache.org> on 2018/02/12 22:07:00 UTC

[jira] [Created] (MESOS-8569) Allow newline characters when decoding base64 strings in stout

Kapil Arya created MESOS-8569:
---------------------------------

             Summary: Allow newline characters when decoding base64 strings in stout
                 Key: MESOS-8569
                 URL: https://issues.apache.org/jira/browse/MESOS-8569
             Project: Mesos
          Issue Type: Task
          Components: stout
            Reporter: Kapil Arya


Current implementation of `stout::base64::decode` errors out on encountering a newline character ("\n" or "\r\n") which is correct wrt [RFC4668#section-3.3|https://tools.ietf.org/html/rfc4648#section-3.3]. However, most implementations insert a newline to delimit encoded string and ignore (instead of erroring out) the newline character while decoding the string. Since stout facilities are used by third-party modules to encode/decode base64 data, it is desirable to allow decoding of newline-delimited data.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)