Ronny Bremer created OLINGO-1170:
------------------------------------
Summary: Olingo v4 client api does not support custom query
options in URIBuilder
Key: OLINGO-1170
URL: https://issues.apache.org/jira/browse/OLINGO-1170
Project: Olingo
Issue Type: Bug
Components: odata4-client
Affects Versions: (Java) V4 4.3.0
Reporter: Ronny Bremer
I am trying to build a URI to access an Olingo based OData 4 service. I can add
query options just fine, for example
newURIBuilder(url).addQueryOption("SKIP", "4")
will result in url?$SKIP=4
However, if I want to specify a custom query option, it will also add a "$" in
front of it, for example
newURIBuilder(url).addQueryOption("LANG", "EN")
will result in url?$LANG=EN
This, of course, will result in an ODataClientErrorException: The system query
option '$LANG' is not defined.
There doesn't seem to be another method to add custom query options to
URIBuilder, so I am opening this bug report.
Yours,
Ronny
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)