[
https://issues.apache.org/jira/browse/OLINGO-1554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17498407#comment-17498407
]
mibo commented on OLINGO-1554:
------------------------------
Hi [~pgrao] and [~KaiStritzelberger],
Thanks for your contribution.
I took it and modified it a bit (see [this
commit|https://github.com/apache/olingo-odata4/commit/69e0f0af1f45cb868fedbb874ff083d017fa1e18]).
Hope this is okay for you.
If there are no objections I will add it in this form to the next release.
Kind Regards, Michael
> Olingo V4 - Uniqueness of Content-ID in batch request
> -----------------------------------------------------
>
> Key: OLINGO-1554
> URL: https://issues.apache.org/jira/browse/OLINGO-1554
> Project: Olingo
> Issue Type: Bug
> Components: odata4-client
> Affects Versions: (Java) V4 4.8.0
> Environment: SAP_GWFND 7.54 SP4
> Reporter: Kai Stritzelberger
> Assignee: mibo
> Priority: Blocker
> Labels: V4, batch, clientCore, odata4, olingo, olingo4
> Fix For: (Java) V4 4.9.0
>
> Attachments:
> 0001-OLINGO-1554-Fix-for-Uniqueness-of-Content-ID-in-requ.patch
>
>
> Currently, the Olingo client core uses an ascending index for the Content-ID
> header value which is unique in the individual changeset but not in the
> complete batch request when using BatchManager.addChangeset API.
> This leads to problems with SAPs OData V4 services and is not correct
> according to the OData V4 spec:
> 11.7.7.1 Multipart Batch Request Body
> "[...] Each body part representing an operation in the change set MUST
> specify a Content-ID header with a request identifier that is unique within
> the batch request. [...]"
--
This message was sent by Atlassian Jira
(v8.20.1#820001)