[
https://issues.apache.org/jira/browse/CAMEL-28067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Guillaume Nodet reassigned CAMEL-28067:
---------------------------------------
Assignee: (was: Guillaume Nodet)
> camel-olingo2, camel-olingo4 - delete reads $metadata on every call without
> the endpoint headers
> ------------------------------------------------------------------------------------------------
>
> Key: CAMEL-28067
> URL: https://issues.apache.org/jira/browse/CAMEL-28067
> Project: Camel
> Issue Type: Bug
> Components: camel-olingo2, camel-olingo4
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: 4.25.0
>
>
> h4. 1. delete reads $metadata on every call, without endpointHttpHeaders
> (olingo2 and olingo4)
> delete calls augmentWithETag(null, ...) (Olingo2AppImpl.java:417 and :470,
> Olingo4AppImpl.java:324 and :445), which reads $metadata again for every
> delete instead of using the Edm the endpoint has, and that metadata request
> does not carry the endpointHttpHeaders. So every delete costs an extra GET,
> and when authentication is only given in endpointHttpHeaders the metadata
> read can fail where the delete itself would work. Proposed change: pass the
> cached Edm (as update/patch/merge do) and the headers.
> h4. 2. olingo4: data is optional for create/update/patch/merge but null fails
> data is in the pom's nullableOptions, but null fails with "Unsupported
> content type: null"; only action accepts null. Proposed change: keep data
> nullable only for action.
> h4. 3. To check (not verified)
> - olingo4 serializeBatchRequest (Olingo4AppImpl.java around 730-810) does not
> write the closing --boundary-- delimiter that RFC 2046 requires.
> - olingo4 action reads any response as an entity (readEntity), so an action
> returning a primitive or a collection probably fails to parse.
> Found while writing the API method and parameter descriptions of CAMEL-27980
> (https://github.com/apache/camel/pull/31273).
> _Filed by Claude Code on behalf of Claus Ibsen_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)