You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Christian Amend (JIRA)" <ji...@apache.org> on 2016/08/12 12:49:20 UTC

[jira] [Assigned] (OLINGO-1003) Binary content in batch requests gets corrupted

     [ https://issues.apache.org/jira/browse/OLINGO-1003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Amend reassigned OLINGO-1003:
---------------------------------------

    Assignee: Christian Amend

> Binary content in batch requests gets corrupted
> -----------------------------------------------
>
>                 Key: OLINGO-1003
>                 URL: https://issues.apache.org/jira/browse/OLINGO-1003
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata4-server
>    Affects Versions: (Java) V4 4.2.0
>            Reporter: Frederik Zimmer
>            Assignee: Christian Amend
>         Attachments: OLINGO1003-Binary-content-in-batch-requests-gets-cor.patch
>
>
> Batch requests can contain binary data e.g. for a media entity. BatchLineReader reads the binary data as a UTF-8 string and BatchRequestTransformator tries to extract the original bytes from the UTF-8 string.
> Converting arbitrary binary data into an UTF-8 string and retrieving the bytes from the UTF-8 string will not always return the original bytes the string was created from.
> Don't interpret binary data as strings.
> I have attached a fix for the testcase for binary data in BatchRequestParserTest which doesn't compare binary data but compares strings.



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