You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ponymail.apache.org by sebbASF <gi...@git.apache.org> on 2016/11/23 14:35:29 UTC

[GitHub] incubator-ponymail issue #262: Bug: archiver stores attachment binary data t...

GitHub user sebbASF opened an issue:

    https://github.com/apache/incubator-ponymail/issues/262

    Bug: archiver stores attachment binary data types with embedded newlines

    According to the Elasticsearch docs [1]
    
    "The Base64 encoded binary value must not have embedded newlines \n."
    
    However that is currently not the case.
    
    The line
    b64 = codecs.encode(fd, "base64").decode('ascii', 'ignore')
    should probably be replaced by:
    b64 = base64.b64encode(fd).decode('ascii', 'ignore')
    
    [1]https://www.elastic.co/guide/en/elasticsearch/reference/2.4/binary.html

----

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-ponymail issue #262: Bug: archiver stores attachment binary data t...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the issue at:

    https://github.com/apache/incubator-ponymail/issues/262


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---