[
https://issues.apache.org/jira/browse/OLINGO-453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Christian Amend reassigned OLINGO-453:
--------------------------------------
Assignee: Christian Amend
> BatchWriter invalid serialisation of get requests
> -------------------------------------------------
>
> Key: OLINGO-453
> URL: https://issues.apache.org/jira/browse/OLINGO-453
> Project: Olingo
> Issue Type: Bug
> Components: odata2-core
> Affects Versions: V2 2.0.0
> Reporter: Christian Holzer
> Assignee: Christian Amend
> Priority: Minor
> Labels: batch, writer
> Fix For: V2 2.0.1
>
> Attachments: batchWriterBugfix.diff
>
>
> While refactoring the batch parser I mentioned a bug in the
> BatchRequestWriter implementation.
> In test case testBatchWithGetAndPost the following request is being created
> --batch_123
> Content-Type: application/http
> Content-Transfer-Encoding: binary
> Content-Id: 000
>
> GET Employees HTTP/1.1
> Accept: application/json //<- Missing 2xCRLF
> --batch_123
> // next body part
> // .....
> Due to the OData specification the CRLF before a boundary belongs logically
> to the boundary itself. In addition a mandatory CRLF after the header block
> must be present.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)