Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
(Java) V4 4.3.0
-
None
-
None
Description
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