Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
(Java) V4 4.7.1
-
None
-
None
Description
According to the OData v4 spec, section 11.5.5.1:
4.01 services MUST support invoking actions with no non-binding parameters and parameterless action imports both without a request body and with a request body representing no parameters, according to the particular format. Interoperable clients SHOULD always include a request body, even when invoking actions with no non-binding parameters and parameterless action imports.
When action does not have any non binding parameters, the client sends an empty request body(AbstractODataInvokeRequest.getPayload()).
Olingo's server part, however, rejects an empty request body (see ODataJsonDeserializer.parseJsonTree(InputStream)).