Florent Albert created OLINGO-1633:
--------------------------------------
Summary: Unable to pass null parameters of Collection in Actions
Key: OLINGO-1633
URL: https://issues.apache.org/jira/browse/OLINGO-1633
Project: Olingo
Issue Type: Bug
Components: odata4-server
Affects Versions: Version (Java) V4 5.0.0, (Java) V4 4.10.0
Reporter: Florent Albert
Assuming an action with the following definition:
{code:java}
<Action Name="MyAction" IsBound="true">
<Parameter Name="MyBindingParam" Type="FQN.Type" Nullable="false" />
<Parameter Name="MyNonBindingParamString" Type="Edm.String" />
<Parameter Name="MyNonBindingParamCollection" Type="Collection(Edm.String)" />
<ReturnType Type="FQN.ReturnType" Nullable="false" />
</Action> {code}
Calling the action without passing a value for MyNonBindingParamCollection
fails, even though the parameter is nullable.
Calling the action without passing a value for MyNonBindingParamString works
fine.
The issue is likely in the deserializer which performs an extra check on
collection parameters even if the parameter is nullable:
[https://github.com/apache/olingo-odata4/blob/master/lib/server-core/src/main/java/org/apache/olingo/server/core/deserializer/json/ODataJsonDeserializer.java#L396]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)