Christian Holzer created OLINGO-453:
---------------------------------------
Summary: 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
Priority: Minor
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)