Frederik Zimmer created OLINGO-873:
--------------------------------------
Summary: Invalid representation of function parameters in URL
Key: OLINGO-873
URL: https://issues.apache.org/jira/browse/OLINGO-873
Project: Olingo
Issue Type: Bug
Components: odata4-client
Affects Versions: (Java) V4 4.1.0
Reporter: Frederik Zimmer
Calling a function with a string parameter will lead to
functionName(paramName=stringValue)
The correct version would be
functionName(paramName='stringValue')
Complex and collection parameters can only be expressed with a parameter alias.
ABNF:
functionParameter = parameterName EQ ( parameterAlias / primitiveLiteral ).
This is not done, so passing complex or collection parameters to a function
call will lead to invalid urls. Example:
Calling a function with a string collection param with one value will lead to
functionName(paramName=[stringValue])
The correct version would be:
functionName(paramName=@p)?@p=["stringValue"]
The bug is in org.apache.olingo.client.core.uri.URIUtils method
buildFunctionInvokeURI.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)